@npcify/vue 0.1.6 → 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
@@ -87,7 +87,11 @@ private. API use is billed to the key owner. Rotation and scope changes revoke
87
87
  live conversation connections; downloaded assets retain their existing lifetime.
88
88
 
89
89
  See [@npcify/web](https://www.npmjs.com/package/@npcify/web) for the underlying SDK,
90
- conversation methods, rendering modes, and deployment requirements.
90
+ conversation methods, rendering modes, and deployment requirements. `@npcify/vue`
91
+ also re-exports `loadCharacter`, `createCharacter`, and `Character` from
92
+ `@npcify/web` when you want to import an AI character directly into a custom
93
+ Three.js `Scene` (`character.scene`, `character.mesh`, `character.audio`,
94
+ `character.expressions`, `character.animation`, `character.update(delta)`).
91
95
 
92
96
  ## Maintainer release
93
97
 
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as vue from 'vue';
2
2
  import { PropType } from 'vue';
3
3
  import { MountNpcifyOptions, Npcify } from '@npcify/web';
4
- export { Npcify, NpcifyView } from '@npcify/web';
4
+ export { Character, CharacterAnimation, CharacterAnimationPlayOptions, CharacterAudio, CharacterDisposeOptions, CharacterExpressions, CharacterOptions, CharacterShadowOptions, CharacterSpeechState, CharacterTransformOptions, LoadCharacterOptions, Npcify, NpcifyCharacter, NpcifyView, createCharacter, loadCharacter } from '@npcify/web';
5
5
 
6
6
  type NpcifyOptions = Omit<MountNpcifyOptions, 'canvas' | 'onError'>;
7
7
 
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 = defineComponent({
48
54
  name: "NpcifyCanvas",
49
55
  inheritAttrs: false,
@@ -91,6 +97,10 @@ var NpcifyCanvas = defineComponent({
91
97
  }
92
98
  });
93
99
  export {
100
+ Character,
94
101
  Npcify,
95
- NpcifyCanvas
102
+ NpcifyCanvas,
103
+ NpcifyCharacter,
104
+ createCharacter,
105
+ loadCharacter
96
106
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npcify/vue",
3
- "version": "0.1.6",
3
+ "version": "0.2.0",
4
4
  "description": "Vue 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.6"
26
+ "@npcify/web": "^0.2.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "vue": "^3.5.0"