@dloizides/game-skins 0.1.0 → 0.3.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dloizides/game-skins",
3
- "version": "0.1.0",
4
- "description": "Engine-free game skin contract (roles, materials, environment, UI tokens, audio cues) plus the shared skin palettes Night circuit, Dusk highway, Ember line and Deep current. Zero deps. Extracted from Surge.",
3
+ "version": "0.3.0",
4
+ "description": "Engine-free game skin contract (3D roles, materials, environment, UI tokens, audio cues; 2D board skins), a skin registry with a persisted active-skin store and React hook, plus the shared skin palettes Night circuit, Dusk highway, Ember line and Deep current. Extracted from Surge.",
5
5
  "keywords": [
6
6
  "game",
7
7
  "skin",
@@ -41,6 +41,24 @@
41
41
  "types": "./dist/index.d.ts",
42
42
  "default": "./dist/index.js"
43
43
  }
44
+ },
45
+ "./react": {
46
+ "browser": {
47
+ "types": "./dist/react.d.ts",
48
+ "default": "./dist/react.js"
49
+ },
50
+ "require": {
51
+ "types": "./dist/react.d.ts",
52
+ "default": "./dist/react.js"
53
+ },
54
+ "import": {
55
+ "types": "./dist/react.d.mts",
56
+ "default": "./dist/react.mjs"
57
+ },
58
+ "default": {
59
+ "types": "./dist/react.d.ts",
60
+ "default": "./dist/react.js"
61
+ }
44
62
  }
45
63
  },
46
64
  "files": [
@@ -68,13 +86,30 @@
68
86
  "devDependencies": {
69
87
  "@types/jest": "^29.5.0",
70
88
  "@types/node": "^20.19.32",
89
+ "@types/react": "^19.3.0",
71
90
  "@typescript-eslint/eslint-plugin": "^7.0.0",
72
91
  "@typescript-eslint/parser": "^7.0.0",
73
92
  "eslint": "^8.57.0",
74
93
  "jest": "^29.7.0",
94
+ "react": "^19.3.1",
75
95
  "rimraf": "^5.0.0",
76
96
  "ts-jest": "^29.1.0",
77
97
  "tsup": "^8.0.0",
78
98
  "typescript": "^5.4.0"
99
+ },
100
+ "typesVersions": {
101
+ "*": {
102
+ "react": [
103
+ "./dist/react.d.ts"
104
+ ]
105
+ }
106
+ },
107
+ "peerDependencies": {
108
+ "react": ">=18.0.0"
109
+ },
110
+ "peerDependenciesMeta": {
111
+ "react": {
112
+ "optional": true
113
+ }
79
114
  }
80
115
  }