BGS lets the only human of a game against bots take back their last saved move (protocol 0.10.0). The board toolbar's undo slot shows an "Undo my move" control while BGS reports it available and the current turn has no unsaved moves (those keep the in-turn undo); it stays hidden for spectators, in analysis, during replays and in lessons. Clicking it asks BGS to undo, which then sends the earlier state: going back in history discards the local selection, bid drafts and confirmations. The dev app mimics BGS's undo against its AI players. Also fixes the import order that failed the prettier check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
68 lines
2.3 KiB
JSON
68 lines
2.3 KiB
JSON
{
|
|
"name": "container-viewer",
|
|
"version": "2.0.15",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/boardgamers/container.git",
|
|
"directory": "viewer"
|
|
},
|
|
"scripts": {
|
|
"serve": "vue-cli-service serve",
|
|
"build": "vue-cli-service build",
|
|
"test:unit": "vue-cli-service test:unit",
|
|
"package": "vue-cli-service build --target lib --name container-viewer src/wrapper.ts",
|
|
"prepublishOnly": "npm run package",
|
|
"test:browser": "node scripts/protocol-smoke.mjs",
|
|
"test:tutorial": "node --test tests/tutorial/lessons.cjs",
|
|
"check": "tsc --noEmit",
|
|
"test:tutorial:browser": "node scripts/tutorial-smoke.mjs",
|
|
"preview:tutorial": "node scripts/tutorial-preview.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@boardgamers/protocol": "0.10.0",
|
|
"container-engine": "workspace:../engine",
|
|
"core-js": "^3.6.5",
|
|
"lodash": "^4.17.19",
|
|
"regenerator-runtime": "^0.13.7",
|
|
"tslib": "^2.2.0",
|
|
"vue": "^2.6.11",
|
|
"vue-class-component": "^7.2.3",
|
|
"vue-property-decorator": "^9.1.2"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/plugin-transform-export-namespace-from": "7.29.7",
|
|
"@types/assert": "^1.4.7",
|
|
"@types/chai": "^4.2.11",
|
|
"@types/events": "^3.0.0",
|
|
"@types/lodash": "^4.14.154",
|
|
"@types/mocha": "^5.2.4",
|
|
"@types/node": "^13.13.52",
|
|
"@types/webpack-env": "^1.18.8",
|
|
"@typescript-eslint/parser": "^4.26.1",
|
|
"@vue/cli-plugin-babel": "~4.4.0",
|
|
"@vue/cli-plugin-typescript": "~4.4.0",
|
|
"@vue/cli-plugin-unit-mocha": "~4.4.0",
|
|
"@vue/cli-service": "~4.4.0",
|
|
"@vue/test-utils": "^1.0.3",
|
|
"chai": "^4.1.2",
|
|
"csstype": "^3.2.3",
|
|
"eslint": "^7.28.0",
|
|
"eslint-plugin-vue": "^7.11.0",
|
|
"playwright": "1.62.1",
|
|
"sass": "^1.26.5",
|
|
"sass-loader": "^8.0.2",
|
|
"typescript": "^5.9.3",
|
|
"vue-template-compiler": "^2.6.11",
|
|
"zod": "^4.6.2"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"dist/container-viewer.umd.min.js",
|
|
"dist/container-viewer.css",
|
|
"dist/img",
|
|
"dist/media",
|
|
"tsconfig.json",
|
|
"public/audio",
|
|
"dist/container-viewer.umd.min.locale-*.js"
|
|
]
|
|
}
|