minecraft-inventory 0.1.1 → 0.1.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-inventory",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "release": {
@@ -18,15 +18,17 @@
18
18
  "@types/react": "^19.2.14",
19
19
  "@types/react-dom": "^19.2.3",
20
20
  "mc-assets": "*",
21
- "minecraft-data": "^3.105.0",
22
- "typescript": "^5.9.3"
23
- },
24
- "dependencies": {
25
- "@xmcl/text-component": "^2.1.3",
26
21
  "react": "^19.2.4",
27
- "react-dom": "^19.2.4"
22
+ "react-dom": "^19.2.4",
23
+ "minecraft-data": "^3.105.0",
24
+ "typescript": "^5.9.3",
25
+ "@xmcl/text-component": "^2.1.3"
28
26
  },
27
+ "dependencies": {},
29
28
  "peerDependencies": {
29
+ "react": "^18.0.0 || ^19.0.0",
30
+ "react-dom": "^18.0.0 || ^19.0.0",
31
+ "@xmcl/text-component": "*",
30
32
  "mc-assets": "*"
31
33
  },
32
34
  "peerDependenciesMeta": {
package/src/index.tsx CHANGED
@@ -47,7 +47,7 @@ export type { ActionLogEntry, DemoConnectorOptions } from './connector/demo'
47
47
 
48
48
  // Registry
49
49
  export { registerInventoryType, getInventoryType, getAllInventoryTypes } from './registry'
50
- export type { InventoryTypeDefinition } from './registry'
50
+ export type { InventoryTypeDefinition, WindowType } from './registry'
51
51
 
52
52
  // Types
53
53
  export type {
@@ -19,3 +19,4 @@ export function getAllInventoryTypes(): InventoryTypeDefinition[] {
19
19
 
20
20
  export { inventoryDefinitions }
21
21
  export type { InventoryTypeDefinition }
22
+ export type WindowType = keyof typeof inventoryDefinitions