bridgeapp-ai-chat-widget 0.2.10 → 0.2.12

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/dist/App.d.ts CHANGED
@@ -5,6 +5,11 @@ export type AppApi = {
5
5
  onAvatarReady: OnAvatarReady;
6
6
  onSessionExpired: () => void;
7
7
  registerSetOpen: (fn: ((open: boolean) => void) | null) => void;
8
+ registerExecuteReaction: (fn: ((params: {
9
+ animation: ExternallyAvailableActions;
10
+ voice: string;
11
+ text: string;
12
+ }) => void) | null) => void;
8
13
  resolveAssetPath: (path: string) => string;
9
14
  registerSendServiceMessage: ((fn: ((message: string, animationName: ExternallyAvailableActions) => void) | null) => void);
10
15
  };
@@ -24,6 +24,7 @@ export default class AnimationManager {
24
24
  private onLoadAnimation;
25
25
  private fadeDuration;
26
26
  fadeToAction(name: string): void;
27
+ applyActiveActionBlendShapeScenario(): void;
27
28
  resetVisemeData(): void;
28
29
  setVisemeData(): void;
29
30
  convertVisemeDataToAnimationScenario(): void;
@@ -12,7 +12,7 @@ type CameraParams = {
12
12
  lookAt: Vector3;
13
13
  fov: number;
14
14
  };
15
- export type ExternallyAvailableActions = "excited" | "fix_hair" | "spin" | "kiss";
15
+ export type ExternallyAvailableActions = "excited" | "fix_hair" | "spin" | "kiss" | "win_small" | "deposit";
16
16
  export declare class Avatar extends EventTarget {
17
17
  private canvas;
18
18
  private videoContainer;
@@ -37,6 +37,7 @@ export declare class Avatar extends EventTarget {
37
37
  private lightAmbient;
38
38
  private lightDirectional;
39
39
  private loadingManager;
40
+ private sounds;
40
41
  init(): Promise<void>;
41
42
  private tempLookAt;
42
43
  setCamera(params: CameraParams, cb?: () => void): void;
@@ -51,6 +52,8 @@ export declare class Avatar extends EventTarget {
51
52
  private speakingAnimationName;
52
53
  private idleAnimationName;
53
54
  setTalking(talking: boolean): void;
55
+ playReaction(speech: string, animation: string): void;
56
+ speakPhrase(phrase: string): void;
54
57
  externalLaunchAnimationAction: (name: ExternallyAvailableActions) => void;
55
58
  private playAction;
56
59
  playVideo: (id: string, speak?: boolean) => Promise<unknown>;