kokopu-react 1.7.1 → 1.7.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.
@@ -1146,18 +1146,18 @@ var Chessboard = /*#__PURE__*/function (_React$Component) {
1146
1146
  exports["default"] = Chessboard;
1147
1147
  Chessboard.propTypes = {
1148
1148
  /**
1149
- * Displayed position. Can be a [kokopu.Position](https://kokopu.yo35.org/docs/Position.html) object,
1149
+ * Displayed position. Can be a [kokopu.Position](https://kokopu.yo35.org/docs/current/Position.html) object,
1150
1150
  * a [FEN string](https://en.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation),
1151
1151
  * `'start'` (usual starting position), or `'empty'` (empty board).
1152
1152
  *
1153
1153
  * Optionally, the FEN string can be prefixed with `'variant:'`, `variant` corresponding to one of the
1154
- * [game variant](https://kokopu.yo35.org/docs/global.html#GameVariant) supported by Kokopu. For instance:
1154
+ * [game variant](https://kokopu.yo35.org/docs/current/global.html#GameVariant) supported by Kokopu. For instance:
1155
1155
  * `'chess960:nrkbqrbn/pppppppp/8/8/8/8/PPPPPPPP/NRKBQRBN w KQkq - 0 1'`.
1156
1156
  */
1157
1157
  position: _propTypes["default"].oneOfType([_propTypes["default"].instanceOf(_kokopu["default"].Position), _propTypes["default"].string]),
1158
1158
 
1159
1159
  /**
1160
- * Displayed move (optional), defined either as a [kokopu.MoveDescriptor](https://kokopu.yo35.org/docs/MoveDescriptor.html) object
1160
+ * Displayed move (optional), defined either as a [kokopu.MoveDescriptor](https://kokopu.yo35.org/docs/current/MoveDescriptor.html) object
1161
1161
  * or as a [SAN string](https://en.wikipedia.org/wiki/Algebraic_notation_(chess)) (e.g. `'Nf3'`). In both cases, it must represent
1162
1162
  * a legal move in position defined in attribute `position`.
1163
1163
  */
@@ -706,14 +706,14 @@ var Movetext = /*#__PURE__*/function (_React$Component) {
706
706
  exports["default"] = Movetext;
707
707
  Movetext.propTypes = {
708
708
  /**
709
- * Displayed position. Can be a [kokopu.Game](https://kokopu.yo35.org/docs/Game.html) object,
710
- * a [kokopu.Database](https://kokopu.yo35.org/docs/Database.html) object,
709
+ * Displayed position. Can be a [kokopu.Game](https://kokopu.yo35.org/docs/current/Game.html) object,
710
+ * a [kokopu.Database](https://kokopu.yo35.org/docs/current/Database.html) object,
711
711
  * or a [PGN string](https://en.wikipedia.org/wiki/Portable_Game_Notation).
712
712
  */
713
713
  game: _propTypes["default"].oneOfType([_propTypes["default"].instanceOf(_kokopu["default"].Game), _propTypes["default"].instanceOf(_kokopu["default"].Database), _propTypes["default"].string]),
714
714
 
715
715
  /**
716
- * Index of the game to display (only if attribute `game` is a [kokopu.Database](https://kokopu.yo35.org/docs/Database.html)
716
+ * Index of the game to display (only if attribute `game` is a [kokopu.Database](https://kokopu.yo35.org/docs/current/Database.html)
717
717
  * or a [PGN string](https://en.wikipedia.org/wiki/Portable_Game_Notation)): `0` for the first game of the database/PGN, `1` for the second one, etc.
718
718
  * If omitted, the first game of the database/PGN is displayed.
719
719
  */
@@ -759,7 +759,7 @@ Movetext.propTypes = {
759
759
 
760
760
  /**
761
761
  * ID of the selected move (or `'start'` for the beginning of the main variation).
762
- * Use [kokopu.Node#id](https://kokopu.yo35.org/docs/Node.html#id) to get the ID of a game move.
762
+ * Use [kokopu.Node#id](https://kokopu.yo35.org/docs/current/Node.html#id) to get the ID of a game move.
763
763
  */
764
764
  selection: _propTypes["default"].string,
765
765
 
@@ -773,7 +773,7 @@ Movetext.propTypes = {
773
773
  /**
774
774
  * Callback invoked when the user selects a move (only if `interactionMode` is set to `'selectMove'`).
775
775
  *
776
- * @param {string?} nodeId ID of the selected move (as returned by [kokopu.Node#id](https://kokopu.yo35.org/docs/Node.html#id)),
776
+ * @param {string?} nodeId ID of the selected move (as returned by [kokopu.Node#id](https://kokopu.yo35.org/docs/current/Node.html#id)),
777
777
  * `'start'` for the beginning of the main variation, or `undefined` if the user unselects the previously selected move.
778
778
  * @param {string} evtOrigin Origin of the event. Can be:
779
779
  * - `'key-first'`: the event has been triggered by the "go-to-first-move" key (aka. the home key),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kokopu-react",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "A React-based library to create and display chessboard and chess-related components.",
5
5
  "keywords": [
6
6
  "chess",
@@ -41,34 +41,34 @@
41
41
  "react-motion": "^0.5.2"
42
42
  },
43
43
  "devDependencies": {
44
- "@babel/cli": "^7.17.10",
45
- "@babel/core": "^7.18.5",
46
- "@babel/preset-env": "^7.18.2",
47
- "@babel/preset-react": "^7.17.12",
48
- "@emotion/react": "^11.9.3",
49
- "@emotion/styled": "^11.9.3",
50
- "@mui/material": "^5.8.5",
44
+ "@babel/cli": "^7.18.10",
45
+ "@babel/core": "^7.18.10",
46
+ "@babel/preset-env": "^7.18.10",
47
+ "@babel/preset-react": "^7.18.6",
48
+ "@emotion/react": "^11.10.0",
49
+ "@emotion/styled": "^11.10.0",
50
+ "@mui/material": "^5.9.3",
51
51
  "babel-loader": "^8.2.5",
52
52
  "babel-plugin-istanbul": "^6.1.1",
53
53
  "copy-webpack-plugin": "^11.0.0",
54
54
  "coveralls": "^3.1.1",
55
55
  "css-loader": "^6.7.1",
56
- "eslint": "^8.18.0",
57
- "eslint-plugin-react": "^7.30.0",
56
+ "eslint": "^8.21.0",
57
+ "eslint-plugin-react": "^7.30.1",
58
58
  "html-webpack-plugin": "^5.5.0",
59
59
  "img-diff-js": "^0.5.2",
60
- "kokopu": "^2.9.0",
60
+ "kokopu": "^2.9.2",
61
61
  "mocha": "^10.0.0",
62
62
  "null-loader": "^4.0.1",
63
63
  "nyc": "^15.1.0",
64
64
  "react": "^18.2.0",
65
65
  "react-dom": "^18.2.0",
66
66
  "react-styleguidist": "^11.2.0",
67
- "selenium-webdriver": "^4.2.0",
68
- "ssh2-sftp-client": "^9.0.1",
67
+ "selenium-webdriver": "^4.3.1",
68
+ "ssh2-sftp-client": "^9.0.2",
69
69
  "style-loader": "^3.3.1",
70
70
  "unit.js": "^2.1.1",
71
- "webpack": "^5.73.0",
71
+ "webpack": "^5.74.0",
72
72
  "webpack-cli": "^4.10.0"
73
73
  },
74
74
  "scripts": {
@@ -2,7 +2,7 @@ version: "3.7"
2
2
 
3
3
  services:
4
4
  web-client:
5
- image: selenium/standalone-firefox:4.2.2-20220622
5
+ image: selenium/standalone-firefox:4.3.0-20220726
6
6
  shm_size: '2gb'
7
7
  ports:
8
8
  - 4444:4444 # http://localhost:4444 (driver)
package/src/Chessboard.js CHANGED
@@ -760,12 +760,12 @@ export default class Chessboard extends React.Component {
760
760
  Chessboard.propTypes = {
761
761
 
762
762
  /**
763
- * Displayed position. Can be a [kokopu.Position](https://kokopu.yo35.org/docs/Position.html) object,
763
+ * Displayed position. Can be a [kokopu.Position](https://kokopu.yo35.org/docs/current/Position.html) object,
764
764
  * a [FEN string](https://en.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation),
765
765
  * `'start'` (usual starting position), or `'empty'` (empty board).
766
766
  *
767
767
  * Optionally, the FEN string can be prefixed with `'variant:'`, `variant` corresponding to one of the
768
- * [game variant](https://kokopu.yo35.org/docs/global.html#GameVariant) supported by Kokopu. For instance:
768
+ * [game variant](https://kokopu.yo35.org/docs/current/global.html#GameVariant) supported by Kokopu. For instance:
769
769
  * `'chess960:nrkbqrbn/pppppppp/8/8/8/8/PPPPPPPP/NRKBQRBN w KQkq - 0 1'`.
770
770
  */
771
771
  position: PropTypes.oneOfType([
@@ -774,7 +774,7 @@ Chessboard.propTypes = {
774
774
  ]),
775
775
 
776
776
  /**
777
- * Displayed move (optional), defined either as a [kokopu.MoveDescriptor](https://kokopu.yo35.org/docs/MoveDescriptor.html) object
777
+ * Displayed move (optional), defined either as a [kokopu.MoveDescriptor](https://kokopu.yo35.org/docs/current/MoveDescriptor.html) object
778
778
  * or as a [SAN string](https://en.wikipedia.org/wiki/Algebraic_notation_(chess)) (e.g. `'Nf3'`). In both cases, it must represent
779
779
  * a legal move in position defined in attribute `position`.
780
780
  */
package/src/Movetext.js CHANGED
@@ -482,8 +482,8 @@ export default class Movetext extends React.Component {
482
482
  Movetext.propTypes = {
483
483
 
484
484
  /**
485
- * Displayed position. Can be a [kokopu.Game](https://kokopu.yo35.org/docs/Game.html) object,
486
- * a [kokopu.Database](https://kokopu.yo35.org/docs/Database.html) object,
485
+ * Displayed position. Can be a [kokopu.Game](https://kokopu.yo35.org/docs/current/Game.html) object,
486
+ * a [kokopu.Database](https://kokopu.yo35.org/docs/current/Database.html) object,
487
487
  * or a [PGN string](https://en.wikipedia.org/wiki/Portable_Game_Notation).
488
488
  */
489
489
  game: PropTypes.oneOfType([
@@ -493,7 +493,7 @@ Movetext.propTypes = {
493
493
  ]),
494
494
 
495
495
  /**
496
- * Index of the game to display (only if attribute `game` is a [kokopu.Database](https://kokopu.yo35.org/docs/Database.html)
496
+ * Index of the game to display (only if attribute `game` is a [kokopu.Database](https://kokopu.yo35.org/docs/current/Database.html)
497
497
  * or a [PGN string](https://en.wikipedia.org/wiki/Portable_Game_Notation)): `0` for the first game of the database/PGN, `1` for the second one, etc.
498
498
  * If omitted, the first game of the database/PGN is displayed.
499
499
  */
@@ -542,7 +542,7 @@ Movetext.propTypes = {
542
542
 
543
543
  /**
544
544
  * ID of the selected move (or `'start'` for the beginning of the main variation).
545
- * Use [kokopu.Node#id](https://kokopu.yo35.org/docs/Node.html#id) to get the ID of a game move.
545
+ * Use [kokopu.Node#id](https://kokopu.yo35.org/docs/current/Node.html#id) to get the ID of a game move.
546
546
  */
547
547
  selection: PropTypes.string,
548
548
 
@@ -556,7 +556,7 @@ Movetext.propTypes = {
556
556
  /**
557
557
  * Callback invoked when the user selects a move (only if `interactionMode` is set to `'selectMove'`).
558
558
  *
559
- * @param {string?} nodeId ID of the selected move (as returned by [kokopu.Node#id](https://kokopu.yo35.org/docs/Node.html#id)),
559
+ * @param {string?} nodeId ID of the selected move (as returned by [kokopu.Node#id](https://kokopu.yo35.org/docs/current/Node.html#id)),
560
560
  * `'start'` for the beginning of the main variation, or `undefined` if the user unselects the previously selected move.
561
561
  * @param {string} evtOrigin Origin of the event. Can be:
562
562
  * - `'key-first'`: the event has been triggered by the "go-to-first-move" key (aka. the home key),