@npcify/vue 0.4.0 → 0.5.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
@@ -72,6 +72,10 @@ const reply = async (label) => {
72
72
  - Voice input: call `bindPushToTalk({ element })` on the ready SDK to talk while
73
73
  the player holds a button or Space; the release sends the speech. See the
74
74
  `@npcify/web` README (Voice input and input modes).
75
+ - Sight: call `startSight()` on the ready SDK after the conversation starts to
76
+ let the character see the player's camera, and `stopSight()` to close it.
77
+ `sightState` is `'unavailable'` until the owner turns sight on in the Sight
78
+ tab. See the `@npcify/web` README (Sight).
75
79
  - `@ready="handler"` and `@error="handler"` events expose the SDK and errors.
76
80
  - `class`/`style` (React: `className`/`style`) customize the outer div. It defaults
77
81
  to 100% width and 480px height. Give it a nonzero height.
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 { Character, CharacterAnimation, CharacterAnimationPlayOptions, CharacterAudio, CharacterDisposeOptions, CharacterExpressions, CharacterOptions, CharacterShadowOptions, CharacterSpeechState, CharacterTransformOptions, InputMode, InputModeError, ListeningOptions, ListeningState, LoadCharacterOptions, Npcify, NpcifyCharacter, NpcifyView, PushToTalkOptions, SpeechInputError, SpeechInputResult, TranscriptEvent, bindPushToTalk, createCharacter, loadCharacter } from '@npcify/web';
4
+ export { Character, CharacterAnimation, CharacterAnimationPlayOptions, CharacterAudio, CharacterDisposeOptions, CharacterExpressions, CharacterOptions, CharacterShadowOptions, CharacterSpeechState, CharacterTransformOptions, InputMode, InputModeError, ListeningOptions, ListeningState, LoadCharacterOptions, Npcify, NpcifyCharacter, NpcifyView, PushToTalkOptions, SightError, SightObservationEvent, SightOptions, SightState, SpeechInputError, SpeechInputResult, TranscriptEvent, bindPushToTalk, createCharacter, loadCharacter } from '@npcify/web';
5
5
 
6
6
  type NpcifyOptions = Omit<MountNpcifyOptions, 'canvas' | 'onError'>;
7
7
 
package/dist/index.js CHANGED
@@ -50,6 +50,7 @@ import {
50
50
  createCharacter,
51
51
  loadCharacter,
52
52
  InputModeError,
53
+ SightError,
53
54
  SpeechInputError,
54
55
  bindPushToTalk
55
56
  } from "@npcify/web";
@@ -106,6 +107,7 @@ export {
106
107
  Npcify,
107
108
  NpcifyCanvas,
108
109
  NpcifyCharacter,
110
+ SightError,
109
111
  SpeechInputError,
110
112
  bindPushToTalk,
111
113
  createCharacter,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npcify/vue",
3
- "version": "0.4.0",
3
+ "version": "0.5.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.4.0"
26
+ "@npcify/web": "^0.5.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "vue": "^3.5.0"