@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.
- package/README.md +130 -130
- package/dist/components/base/DifficultySelector/DifficultySelector.d.ts +4 -7
- package/dist/components/base/DifficultySelector/Selector.d.ts +1 -1
- package/dist/components/base/DifficultySelector/types.d.ts +3 -0
- package/dist/components/base/FreeRoundsIntroModal/FreeRoundsIntroModal.d.ts +14 -0
- package/dist/components/base/FreeRoundsIntroModal/freeRoundsCoin.d.ts +11 -0
- package/dist/components/base/FreeRoundsIntroModal/index.d.ts +3 -0
- package/dist/components/base/FreeRoundsSummaryModal/FreeRoundsSummaryModal.d.ts +9 -0
- package/dist/components/base/FreeRoundsSummaryModal/index.d.ts +3 -0
- package/dist/components/base/GroupRow/GroupRow.d.ts +2 -1
- package/dist/components/base/Input/Input.d.ts +3 -1
- package/dist/components/base/InputWithSwitch/InputWithSwitch.d.ts +2 -1
- package/dist/components/base/PlayController/PlayController.d.ts +2 -1
- package/dist/components/base/PlayValueInput/PlayValueInput.d.ts +2 -1
- package/dist/components/hooks/usePlayController.d.ts +8 -0
- package/dist/components/hooks/useSpacebarButtonTrigger.d.ts +2 -1
- package/dist/i18n/I18nContext.d.ts +13 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/locales/en.d.ts +2 -0
- package/dist/i18n/locales/zh-CN.d.ts +2 -0
- package/dist/i18n/translator.d.ts +5 -0
- package/dist/i18n/types.d.ts +41 -0
- package/dist/index.d.ts +132 -11
- package/dist/index.mjs +595 -113
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/playController.d.ts +52 -9
- 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.
|
|
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
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@rollup/plugin-
|
|
51
|
-
"@rollup/plugin-
|
|
52
|
-
"@rollup/plugin-
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"eslint": "^
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"eslint
|
|
64
|
-
"eslint-
|
|
65
|
-
"eslint-plugin-
|
|
66
|
-
"eslint-plugin-
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"react-
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
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
|
+
}
|