react-chessboard-ui 0.1.9 → 0.1.11

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.
Files changed (2) hide show
  1. package/README.md +8 -13
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  [![NPM](https://img.shields.io/npm/v/react-chessboard-ui.svg)](https://www.npmjs.com/package/react-chessboard-ui) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
4
4
 
5
- ## ❗️ ATTENTION ❗️
6
- This is a package that is currently in active development.
7
-
8
5
  <img src="./blob/ChessBoard.png?raw=true" width="400px">
9
6
 
7
+ ## See full documentation on https://chessboardui.space
8
+
9
+
10
10
  ## Install
11
11
 
12
12
  ```bash
@@ -19,7 +19,7 @@ or
19
19
  yarn add react-chessboard-ui
20
20
  ```
21
21
 
22
- ## Usage
22
+ ## Usage example
23
23
  ```tsx
24
24
  import React from 'react';
25
25
  import { ChessBoard } from 'rechreact-chessboard-ui'; // ChessBoard is a base component of react-chessboard-ui
@@ -28,27 +28,22 @@ import 'react-chessboard-ui/dist/index.css'; // required import css for ChessBoa
28
28
 
29
29
  export const App = () => {
30
30
 
31
- // This handler for example
32
- const handleChangePosition = (data) => {
33
- console.log(data);
34
- }
31
+ // ... all handlers
35
32
 
36
33
  return (
37
34
  <div>
38
35
  <ChessBoard
39
36
  FEN="rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
40
37
  onChange={handleChangePosition}
41
- color="white"
42
- reversed={reversed} // For black
38
+ onEndGame={handleEndGame}
43
39
  />
44
40
  </div>
45
41
  );
46
42
  }
47
43
  ```
48
44
 
49
- ## Designer
50
- [LinkedIn: Tatiana Utbanova](https://www.linkedin.com/in/tatiana-utbanova-6415b8271/)
45
+ ## Creators
46
+ Created by [in: Tanya](https://www.linkedin.com/in/tatiana-utbanova-6415b8271/) and [in: Alex](linkedin.com/in/alexander-utbanov-a9670a210/)
51
47
 
52
48
  ## License
53
-
54
49
  MIT © [](https://github.com/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-chessboard-ui",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "for chess apps",
5
5
  "author": "skilldill",
6
6
  "license": "MIT",
@@ -8,6 +8,7 @@
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.modern.js",
10
10
  "source": "src/index.tsx",
11
+ "keywords": ["react", "chess", "chess.js", "chessboard", "chess board", "react-chessboard", "react chessboard", "react chess board", "react-dnd", "chessboard component", "drag and drop", "typescript", "lichess", "chesscom"],
11
12
  "engines": {
12
13
  "node": ">=10"
13
14
  },