@react-three/viverse 0.1.4 → 0.1.5

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  <h1 align="center">@react-three/viverse</h1>
2
- <h3 align="center">Toolkit for building and publishing React Three Fiber Apps to Viverse.</h3>
2
+ <h3 align="center">Toolkit for building Three.js and React Three Fiber Apps for Viverse and beyond.</h3>
3
3
  <br/>
4
4
 
5
5
  <p align="center">
@@ -26,7 +26,7 @@ npm install three @react-three/fiber @react-three/viverse
26
26
  | A prototype map with the `<SimpleCharacter/>` component and its default model. | ![render of the code below](./docs/getting-started/basic-example.gif) |
27
27
  | --------------------------------------------------------------------------- | --------------------------------------------------------------------- |
28
28
 
29
- ```jsx
29
+ ```tsx
30
30
  import { createRoot } from 'react-dom/client'
31
31
  import { Sky } from '@react-three/drei'
32
32
  import { Canvas } from '@react-three/fiber'
@@ -68,3 +68,7 @@ Get started with **[building a simple game](https://pmndrs.github.io/viverse/tut
68
68
  > No Problem
69
69
 
70
70
  Check out how to build games using @pmndrs/viverse and only [vanilla three.js](https://pmndrs.github.io/viverse/without-react).
71
+
72
+ ## Acknowledgments
73
+
74
+ This project would not be possible without the default model and default animations made by [Quaternius](https://quaternius.com/), the prototype texture from (kenney.nl)[https://www.kenney.nl/], and the [three-vrm project](https://github.com/pixiv/three-vrm) from the [pixiv team](https://github.com/pixiv)!
package/dist/character.js CHANGED
@@ -31,7 +31,11 @@ export const SimpleCharacter = forwardRef(({ children, input, useViverseAvatar =
31
31
  const newOptions = {
32
32
  ...options,
33
33
  model: options.model != false && avatar != null && useViverseAvatar
34
- ? { url: avatar?.vrmUrl, ...(options.model === true ? undefined : options.model) }
34
+ ? {
35
+ type: avatar.vrmUrl != null ? 'vrm' : undefined,
36
+ url: avatar?.vrmUrl,
37
+ ...(options.model === true ? undefined : options.model),
38
+ }
35
39
  : options.model,
36
40
  };
37
41
  const preloadSimpleCharacterAssetsKeys = [
package/dist/index.d.ts CHANGED
@@ -69,7 +69,7 @@ export declare function useViversePublicAvatarList(): Awaited<ReturnType<AvatarC
69
69
  export declare function useViversePublicAvatarByID(id: string): Awaited<ReturnType<AvatarClient['getPublicAvatarByID']>> | undefined;
70
70
  export * from './character.js';
71
71
  export * from './material.js';
72
- export { FirstPersonCharacterCameraBehavior, LocomotionKeyboardInput, PointerCaptureInput, PointerLockInput, VRMHumanBoneName, } from '@pmndrs/viverse';
72
+ export { FirstPersonCharacterCameraBehavior, SimpleCharacter as SimpleCharacterImpl, LocomotionKeyboardInput, PointerCaptureInput, PointerLockInput, VRMHumanBoneName, } from '@pmndrs/viverse';
73
73
  export * from '@viverse/sdk';
74
74
  export * from '@viverse/sdk/avatar-client';
75
75
  export * from './gamepad.js';
package/dist/index.js CHANGED
@@ -150,7 +150,7 @@ export function useViversePublicAvatarByID(id) {
150
150
  }
151
151
  export * from './character.js';
152
152
  export * from './material.js';
153
- export { FirstPersonCharacterCameraBehavior, LocomotionKeyboardInput, PointerCaptureInput, PointerLockInput, VRMHumanBoneName, } from '@pmndrs/viverse';
153
+ export { FirstPersonCharacterCameraBehavior, SimpleCharacter as SimpleCharacterImpl, LocomotionKeyboardInput, PointerCaptureInput, PointerLockInput, VRMHumanBoneName, } from '@pmndrs/viverse';
154
154
  export * from '@viverse/sdk';
155
155
  export * from '@viverse/sdk/avatar-client';
156
156
  export * from './gamepad.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/viverse",
3
- "description": "Toolkit for building and publishing React Three Fiber Apps to Viverse.",
3
+ "description": "Toolkit for building React Three Fiber Apps for Viverse and beyond.",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "author": "Bela Bohlender",
@@ -28,7 +28,7 @@
28
28
  "@react-three/xr": "^6.6.20",
29
29
  "@pixiv/three-vrm": "^3.4.2",
30
30
  "zustand": "^5.0.6",
31
- "@pmndrs/viverse": "^0.1.4"
31
+ "@pmndrs/viverse": "^0.1.5"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@react-three/fiber": "*"
@@ -38,7 +38,7 @@
38
38
  "@types/react": "^19.1.8",
39
39
  "react": "^19.1.0"
40
40
  },
41
- "version": "0.1.4",
41
+ "version": "0.1.5",
42
42
  "scripts": {
43
43
  "build": "tsc",
44
44
  "check:prettier": "prettier --check src",