board-game-engine-react 0.0.7 → 0.0.9

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": "board-game-engine-react",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "React library for using board-game-engine",
5
5
  "main": "dist/board-game-engine-react.js",
6
6
  "scripts": {
@@ -79,6 +79,7 @@
79
79
  "storybook": "^8.4.6"
80
80
  },
81
81
  "dependencies": {
82
+ "board-game-engine": "^0.0.8",
82
83
  "react": "^18.2.0",
83
84
  "react-error-boundary": "^3.1.4",
84
85
  "react-transition-group": "^4.4.5"
package/src/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  import './styles.scss'
2
+ import * as BoardGameEngine from 'board-game-engine'
2
3
 
3
4
  export { default as Game } from './components/game/game.js'
4
5
  export { useGameserverConnection } from './use-gameserver-connection'
6
+ export const Client = BoardGameEngine.Client
@@ -1,5 +1,7 @@
1
1
  import { useEffect, useReducer, useState } from 'react'
2
- import { Client } from 'board-game-engine'
2
+ import * as BoardGameEngine from 'board-game-engine'
3
+ const Client = BoardGameEngine.Client
4
+
3
5
 
4
6
  export const useGameserverConnection = ({
5
7
  server,