@jgengine/react 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/dist/hooks.d.ts +2 -2
  2. package/package.json +2 -2
package/dist/hooks.d.ts CHANGED
@@ -5,7 +5,7 @@ import type { QuestInstance } from "@jgengine/core/game/quest";
5
5
  import type { FriendEntry, PartyMemberEntry, PresenceInfo } from "@jgengine/core/game/social";
6
6
  import type { LeaderboardScope } from "@jgengine/core/game/leaderboard";
7
7
  import type { InventorySlot } from "@jgengine/core/inventory/inventoryModel";
8
- import type { PoolStat } from "@jgengine/core/scene/entityStats";
8
+ import type { StatValue } from "@jgengine/core/scene/entityStats";
9
9
  import type { SceneEntity } from "@jgengine/core/scene/entityStore";
10
10
  import type { SceneObject } from "@jgengine/core/scene/objectStore";
11
11
  import { type PositionedPrompt } from "@jgengine/core/interaction/proximityPrompt";
@@ -20,7 +20,7 @@ export declare function usePlayer(): {
20
20
  };
21
21
  export declare function useSceneEntities(): readonly SceneEntity[];
22
22
  export declare function useSceneObjects(): readonly SceneObject[];
23
- export declare function useEntityStat(instanceId: string, statId: string): PoolStat | null;
23
+ export declare function useEntityStat(instanceId: string, statId: string): StatValue | null;
24
24
  export declare function useTarget(fromInstanceId: string): string | null;
25
25
  export declare function useInventory(inventoryId: string): readonly InventorySlot[];
26
26
  export declare function useCurrency(currencyId: string): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jgengine/react",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "React UI layer for JGengine: GameProvider, hooks, and headless primitives over @jgengine/core.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "check-types": "tsc --noEmit -p tsconfig.json"
23
23
  },
24
24
  "dependencies": {
25
- "@jgengine/core": "^0.1.0"
25
+ "@jgengine/core": "^0.2.0"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "^19.0.0"