Skip to content

Commit

Permalink
upgrade chessground & pgn-viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Feb 1, 2023
1 parent a1a1f7e commit 558708b
Show file tree
Hide file tree
Showing 25 changed files with 91 additions and 85 deletions.
119 changes: 62 additions & 57 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ui/analyse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"chart": "workspace:*",
"chat": "workspace:*",
"chess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"chessops": "^0.12.5",
"common": "workspace:*",
"debounce-promise": "^3.1.2",
Expand Down
1 change: 1 addition & 0 deletions ui/analyse/src/autoShape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export function compute(ctrl: AnalyseCtrl): DrawShape[] {
shapes = shapes.concat({
orig: destSquare,
customSvg: svg,
brush: '',
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion ui/ceval/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"@badrap/result": "^0.2.13",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"chessops": "^0.12.5",
"idb-keyval": "^6.2.0",
"snabbdom": "^3.5.1",
Expand Down
2 changes: 1 addition & 1 deletion ui/challenge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dependencies": {
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"common": "workspace:*",
"snabbdom": "^3.5.1"
},
Expand Down
2 changes: 1 addition & 1 deletion ui/chess/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"common": "workspace:*",
"snabbdom": "^3.5.1"
},
Expand Down
4 changes: 2 additions & 2 deletions ui/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"@types/dom-screen-wake-lock": "1.0.0",
"chessground": "^8.3.6",
"lichess-pgn-viewer": "^1.5.2",
"chessground": "^8.3.7",
"lichess-pgn-viewer": "^1.5.4",
"snabbdom": "^3.5.1",
"tablesort": "^5.3.0"
},
Expand Down
2 changes: 1 addition & 1 deletion ui/coordinateTrainer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@types/cash": "workspace:*",
"@types/fnando__sparkline": "^0.3.4",
"@types/lichess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"common": "workspace:*",
"snabbdom": "^3.5.1"
},
Expand Down
4 changes: 2 additions & 2 deletions ui/coordinateTrainer/src/ctrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ export default class CoordinateTrainerCtrl {

if (this.mode() === 'nameSquare')
this.chessground?.setShapes([
{ orig: this.currentKey as Key, customSvg: targetSvg('current') },
{ orig: this.nextKey as Key, customSvg: targetSvg('next') },
{ orig: this.currentKey as Key, customSvg: targetSvg('current'), brush: '' },
{ orig: this.nextKey as Key, customSvg: targetSvg('next'), brush: '' },
]);

this.redraw();
Expand Down
2 changes: 1 addition & 1 deletion ui/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"chessops": "^0.12.5",
"common": "workspace:*",
"snabbdom": "^3.5.1"
Expand Down
2 changes: 1 addition & 1 deletion ui/game/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"snabbdom": "^3.5.1"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion ui/keyboardMove/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"chess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"common": "workspace:*",
"snabbdom": "^3.5.1"
},
Expand Down
2 changes: 1 addition & 1 deletion ui/lobby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/cash": "workspace:*",
"@types/debounce-promise": "^3.1.6",
"@types/lichess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"common": "workspace:*",
"debounce-promise": "^3.1.2",
"snabbdom": "^3.5.1"
Expand Down
2 changes: 1 addition & 1 deletion ui/nvui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"chess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"chessops": "^0.12.5",
"snabbdom": "^3.5.1"
},
Expand Down
4 changes: 2 additions & 2 deletions ui/opening/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"@types/lichess": "workspace:*",
"chart.js": "=3.9.1",
"chartjs-adapter-date-fns": "=2.0.1",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"common": "workspace:*",
"date-fns": "^2.29.3",
"debounce-promise": "^3.1.2",
"lichess-pgn-viewer": "^1.5.2"
"lichess-pgn-viewer": "^1.5.4"
},
"scripts": {
"compile": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion ui/puz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dependencies": {
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"chessops": "^0.12.5",
"common": "workspace:*",
"snabbdom": "^3.5.1"
Expand Down
2 changes: 1 addition & 1 deletion ui/puzzle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"ceval": "workspace:*",
"chart.js": "=3.9.1",
"chess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"chessops": "^0.12.5",
"common": "workspace:*",
"keyboardMove": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion ui/racer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"chess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"chessops": "^0.12.5",
"common": "workspace:*",
"puz": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion ui/round/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@types/lichess": "workspace:*",
"chat": "workspace:*",
"chess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"common": "workspace:*",
"game": "workspace:*",
"keyboardMove": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion ui/simul/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"chat": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"common": "workspace:*",
"game": "workspace:*",
"snabbdom": "^3.5.1"
Expand Down
4 changes: 2 additions & 2 deletions ui/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"@types/zxcvbn": "^4.4.1",
"@yaireo/tagify": "^4.17.6",
"chat": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"common": "workspace:*",
"debounce-promise": "^3.1.2",
"flatpickr": "^4.6.13",
"highcharts": "=4.2.5",
"hopscotch": "^0.3.1",
"lichess-pgn-viewer": "^1.5.2",
"lichess-pgn-viewer": "^1.5.4",
"prop-types": "^15.8.1",
"stockfish-mv.wasm": "^0.6.1",
"stockfish-nnue.wasm": "1.0.0-1946a675.smolnet",
Expand Down
2 changes: 1 addition & 1 deletion ui/storm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"chess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"chessops": "^0.12.5",
"common": "workspace:*",
"puz": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion ui/swiss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"chat": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"common": "workspace:*",
"game": "workspace:*",
"snabbdom": "^3.5.1"
Expand Down
2 changes: 1 addition & 1 deletion ui/tournament/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"chat": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"common": "workspace:*",
"game": "workspace:*",
"snabbdom": "^3.5.1"
Expand Down
4 changes: 2 additions & 2 deletions ui/tutor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"dependencies": {
"@types/cash": "workspace:*",
"@types/lichess": "workspace:*",
"chessground": "^8.3.6",
"chessground": "^8.3.7",
"common": "workspace:*",
"lichess-pgn-viewer": "^1.5.2"
"lichess-pgn-viewer": "^1.5.4"
},
"scripts": {
"compile": "tsc",
Expand Down

0 comments on commit 558708b

Please sign in to comment.