@enigma-lake/tower-play-controller-sdk 2.0.23 → 2.0.25

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 (29) hide show
  1. package/README.md +130 -130
  2. package/dist/components/base/DifficultySelector/DifficultySelector.d.ts +4 -7
  3. package/dist/components/base/DifficultySelector/Selector.d.ts +1 -1
  4. package/dist/components/base/DifficultySelector/types.d.ts +3 -0
  5. package/dist/components/base/FreeRoundsIntroModal/FreeRoundsIntroModal.d.ts +14 -0
  6. package/dist/components/base/FreeRoundsIntroModal/freeRoundsCoin.d.ts +11 -0
  7. package/dist/components/base/FreeRoundsIntroModal/index.d.ts +3 -0
  8. package/dist/components/base/FreeRoundsSummaryModal/FreeRoundsSummaryModal.d.ts +9 -0
  9. package/dist/components/base/FreeRoundsSummaryModal/index.d.ts +3 -0
  10. package/dist/components/base/GroupRow/GroupRow.d.ts +2 -1
  11. package/dist/components/base/Input/Input.d.ts +3 -1
  12. package/dist/components/base/InputWithSwitch/InputWithSwitch.d.ts +2 -1
  13. package/dist/components/base/PlayController/PlayController.d.ts +2 -1
  14. package/dist/components/base/PlayValueInput/PlayValueInput.d.ts +2 -1
  15. package/dist/components/hooks/usePlayController.d.ts +8 -0
  16. package/dist/components/hooks/useSpacebarButtonTrigger.d.ts +2 -1
  17. package/dist/i18n/I18nContext.d.ts +13 -0
  18. package/dist/i18n/index.d.ts +5 -0
  19. package/dist/i18n/locales/en.d.ts +2 -0
  20. package/dist/i18n/locales/zh-CN.d.ts +2 -0
  21. package/dist/i18n/translator.d.ts +5 -0
  22. package/dist/i18n/types.d.ts +41 -0
  23. package/dist/index.d.ts +132 -11
  24. package/dist/index.mjs +595 -113
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/style.css +1 -1
  27. package/dist/types/index.d.ts +2 -2
  28. package/dist/types/playController.d.ts +52 -9
  29. package/package.json +92 -85
package/package.json CHANGED
@@ -1,85 +1,92 @@
1
- {
2
- "name": "@enigma-lake/tower-play-controller-sdk",
3
- "version": "2.0.23",
4
- "description": "A React component library for building gameplay interfaces",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "typings": "dist/index.d.ts",
8
- "type": "module",
9
- "style": "dist/style.css",
10
- "publishConfig": {
11
- "access": "public"
12
- },
13
- "scripts": {
14
- "build": "tsc && rollup -c --bundleConfigAsCjs",
15
- "start": "webpack serve --mode development --open",
16
- "test": "npm run build && node --test tests/*.test.mjs",
17
- "eslint": "eslint --cache --fix .",
18
- "eslint:check": "eslint .",
19
- "prettier": "prettier --write .",
20
- "prettier:check": "prettier --check ."
21
- },
22
- "keywords": [],
23
- "author": "",
24
- "license": "ISC",
25
- "files": [
26
- "dist",
27
- "dist/style.css",
28
- "dist/index.js",
29
- "dist/index.d.ts"
30
- ],
31
- "peerDependencies": {
32
- "@enigma-lake/zoot-platform-sdk": "1.1.8",
33
- "@headlessui/react": "^2.2.0",
34
- "@types/react": "^19.0.7",
35
- "@types/react-dom": "^19.0.3",
36
- "react": "18.2.0",
37
- "react-dom": "18.2.0",
38
- "use-debounce": "^10.0.4"
39
- },
40
- "resolutions": {
41
- "react": "18.2.0",
42
- "react-dom": "18.2.0"
43
- },
44
- "devDependencies": {
45
- "@babel/core": "^7.26.0",
46
- "@babel/preset-env": "^7.26.0",
47
- "@babel/preset-react": "^7.26.3",
48
- "@rollup/plugin-babel": "^6.0.4",
49
- "@rollup/plugin-commonjs": "^28.0.2",
50
- "@rollup/plugin-inject": "^5.0.5",
51
- "@rollup/plugin-node-resolve": "^16.0.0",
52
- "@rollup/plugin-typescript": "^12.1.2",
53
- "@types/node": "^22.10.6",
54
- "@typescript-eslint/eslint-plugin": "^8.20.0",
55
- "@typescript-eslint/parser": "^8.20.0",
56
- "babel-loader": "^9.2.1",
57
- "classnames": "^2.5.1",
58
- "css-loader": "^7.1.2",
59
- "eslint": "^9.18.0",
60
- "eslint-config-prettier": "^10.0.1",
61
- "eslint-plugin-import": "^2.31.0",
62
- "eslint-plugin-prettier": "^5.2.2",
63
- "eslint-plugin-promise": "^7.2.1",
64
- "eslint-plugin-react": "^7.37.4",
65
- "eslint-plugin-react-hooks": "^5.1.0",
66
- "eslint-plugin-storybook": "^0.11.2",
67
- "mini-css-extract-plugin": "^2.9.2",
68
- "prettier": "^3.4.2",
69
- "react-switch": "^7.1.0",
70
- "rollup": "^4.30.1",
71
- "rollup-plugin-delete": "^2.1.0",
72
- "rollup-plugin-dts": "^6.1.1",
73
- "rollup-plugin-peer-deps-external": "^2.2.4",
74
- "rollup-plugin-postcss": "^4.0.2",
75
- "rollup-plugin-sass": "^1.15.0",
76
- "sass": "^1.83.4",
77
- "sass-loader": "^16.0.4",
78
- "style-loader": "^4.0.0",
79
- "ts-loader": "^9.5.2",
80
- "typescript": "^5.7.3",
81
- "webpack": "^5.97.1",
82
- "webpack-cli": "^6.0.1",
83
- "webpack-dev-server": "^5.2.0"
84
- }
85
- }
1
+ {
2
+ "name": "@enigma-lake/tower-play-controller-sdk",
3
+ "version": "2.0.25",
4
+ "description": "A React component library for building gameplay interfaces",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "typings": "dist/index.d.ts",
8
+ "type": "module",
9
+ "style": "dist/style.css",
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "scripts": {
14
+ "build": "tsc && rollup -c --bundleConfigAsCjs",
15
+ "start": "webpack serve --mode development --open",
16
+ "test": "npm run build && node --test tests/*.test.mjs",
17
+ "eslint": "eslint --cache --fix .",
18
+ "eslint:check": "eslint .",
19
+ "prettier": "prettier --write .",
20
+ "prettier:check": "prettier --check ."
21
+ },
22
+ "keywords": [],
23
+ "author": "",
24
+ "license": "ISC",
25
+ "files": [
26
+ "dist",
27
+ "dist/style.css",
28
+ "dist/index.js",
29
+ "dist/index.d.ts"
30
+ ],
31
+ "peerDependencies": {
32
+ "@enigma-lake/zoot-platform-sdk": "1.1.8",
33
+ "@headlessui/react": "^2.2.0",
34
+ "@types/react": "^19.0.7",
35
+ "@types/react-dom": "^19.0.3",
36
+ "react": "18.2.0",
37
+ "react-dom": "18.2.0",
38
+ "use-debounce": "^10.0.4"
39
+ },
40
+ "resolutions": {
41
+ "react": "18.2.0",
42
+ "react-dom": "18.2.0"
43
+ },
44
+ "devDependencies": {
45
+ "@babel/core": "^7.26.0",
46
+ "@babel/preset-env": "^7.26.0",
47
+ "@babel/preset-react": "^7.26.3",
48
+ "@enigma-lake/zoot-platform-sdk": "^1.1.8",
49
+ "@headlessui/react": "^2.2.10",
50
+ "@rollup/plugin-babel": "^6.0.4",
51
+ "@rollup/plugin-commonjs": "^28.0.2",
52
+ "@rollup/plugin-inject": "^5.0.5",
53
+ "@rollup/plugin-node-resolve": "^16.0.0",
54
+ "@rollup/plugin-typescript": "^12.1.2",
55
+ "@types/node": "^22.10.6",
56
+ "@types/react": "^19.2.14",
57
+ "@types/react-dom": "^19.2.3",
58
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
59
+ "@typescript-eslint/parser": "^8.20.0",
60
+ "babel-loader": "^9.2.1",
61
+ "classnames": "^2.5.1",
62
+ "css-loader": "^7.1.2",
63
+ "eslint": "^9.18.0",
64
+ "eslint-config-prettier": "^10.0.1",
65
+ "eslint-plugin-import": "^2.31.0",
66
+ "eslint-plugin-prettier": "^5.2.2",
67
+ "eslint-plugin-promise": "^7.2.1",
68
+ "eslint-plugin-react": "^7.37.4",
69
+ "eslint-plugin-react-hooks": "^5.1.0",
70
+ "eslint-plugin-storybook": "^0.11.2",
71
+ "mini-css-extract-plugin": "^2.9.2",
72
+ "prettier": "^3.4.2",
73
+ "react": "^18.2.0",
74
+ "react-dom": "^18.2.0",
75
+ "react-switch": "^7.1.0",
76
+ "rollup": "^4.30.1",
77
+ "rollup-plugin-delete": "^2.1.0",
78
+ "rollup-plugin-dts": "^6.1.1",
79
+ "rollup-plugin-peer-deps-external": "^2.2.4",
80
+ "rollup-plugin-postcss": "^4.0.2",
81
+ "rollup-plugin-sass": "^1.15.0",
82
+ "sass": "^1.83.4",
83
+ "sass-loader": "^16.0.4",
84
+ "style-loader": "^4.0.0",
85
+ "ts-loader": "^9.5.2",
86
+ "typescript": "^5.7.3",
87
+ "use-debounce": "^10.1.1",
88
+ "webpack": "^5.97.1",
89
+ "webpack-cli": "^6.0.1",
90
+ "webpack-dev-server": "^5.2.0"
91
+ }
92
+ }