@npcify/react 0.1.7 → 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.
package/README.md CHANGED
@@ -91,7 +91,11 @@ private. API use is billed to the key owner. Rotation and scope changes revoke
91
91
  live conversation connections; downloaded assets retain their existing lifetime.
92
92
 
93
93
  See [@npcify/web](https://www.npmjs.com/package/@npcify/web) for the underlying SDK,
94
- conversation methods, rendering modes, and deployment requirements.
94
+ conversation methods, rendering modes, and deployment requirements. `@npcify/react`
95
+ also re-exports `loadCharacter`, `createCharacter`, and `Character` from
96
+ `@npcify/web` when you want to import an AI character directly into a custom
97
+ Three.js `Scene` (`character.scene`, `character.mesh`, `character.audio`,
98
+ `character.expressions`, `character.animation`, `character.update(delta)`).
95
99
 
96
100
  ## Maintainer release
97
101
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes, ReactElement } from 'react';
2
2
  import { Npcify, MountNpcifyOptions } from '@npcify/web';
3
- export { Npcify, NpcifyView } from '@npcify/web';
3
+ export { Character, CharacterAnimation, CharacterAnimationPlayOptions, CharacterAudio, CharacterDisposeOptions, CharacterExpressions, CharacterOptions, CharacterShadowOptions, CharacterSpeechState, CharacterTransformOptions, LoadCharacterOptions, Npcify, NpcifyCharacter, NpcifyView, createCharacter, loadCharacter } from '@npcify/web';
4
4
 
5
5
  type NpcifyOptions = Omit<MountNpcifyOptions, 'canvas' | 'onError'>;
6
6
  interface NpcifyCallbacks {
package/dist/index.js CHANGED
@@ -43,7 +43,13 @@ var attachCharacter = function(host, options, callbacks) {
43
43
  };
44
44
 
45
45
  // src/index.ts
46
- import { Npcify } from "@npcify/web";
46
+ import {
47
+ Character,
48
+ Npcify,
49
+ NpcifyCharacter,
50
+ createCharacter,
51
+ loadCharacter
52
+ } from "@npcify/web";
47
53
  var NpcifyCanvas = function({
48
54
  options,
49
55
  onReady,
@@ -83,6 +89,10 @@ var NpcifyCanvas = function({
83
89
  });
84
90
  };
85
91
  export {
92
+ Character,
86
93
  Npcify,
87
- NpcifyCanvas
94
+ NpcifyCanvas,
95
+ NpcifyCharacter,
96
+ createCharacter,
97
+ loadCharacter
88
98
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npcify/react",
3
- "version": "0.1.7",
3
+ "version": "0.2.0",
4
4
  "description": "React components for Npcify characters and conversations",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -23,7 +23,7 @@
23
23
  "registry": "https://registry.npmjs.org/"
24
24
  },
25
25
  "dependencies": {
26
- "@npcify/web": "^0.1.7"
26
+ "@npcify/web": "^0.2.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": "^18.3.0 || ^19.0.0"