bridgeapp-ai-chat-widget 0.2.11 → 0.2.13
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 +6 -0
- package/dist/avatar/AnimationManager.d.ts +1 -0
- package/dist/avatar/Avatar.d.ts +7 -2
- package/dist/bridge-ai-chat-widget.es.js +21892 -21246
- package/dist/bridge-ai-chat-widget.umd.js +282 -282
- package/dist/constants.d.ts +2 -0
- package/dist/context/ChatWidgetContext.d.ts +4 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.types.d.ts +2 -0
- package/dist/ui/components/VoiceModeMessage.d.ts +12 -0
- package/package.json +1 -1
- package/dist/ui/components/VoiceMessage.d.ts +0 -9
package/dist/App.d.ts
CHANGED
|
@@ -5,8 +5,14 @@ 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);
|
|
15
|
+
registerSetLocale: ((fn: ((locale: string) => void) | null) => void);
|
|
10
16
|
};
|
|
11
17
|
type AppProps = {
|
|
12
18
|
config: WidgetConfig;
|
|
@@ -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;
|
package/dist/avatar/Avatar.d.ts
CHANGED
|
@@ -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;
|
|
@@ -33,11 +33,14 @@ export declare class Avatar extends EventTarget {
|
|
|
33
33
|
private animationManager;
|
|
34
34
|
private cameraParams;
|
|
35
35
|
private controls?;
|
|
36
|
+
private locale?;
|
|
36
37
|
constructor(canvas: HTMLCanvasElement, videoContainer: HTMLDivElement, config: WidgetConfig, api: AppApi);
|
|
37
38
|
private lightAmbient;
|
|
38
39
|
private lightDirectional;
|
|
39
40
|
private loadingManager;
|
|
41
|
+
private sounds;
|
|
40
42
|
init(): Promise<void>;
|
|
43
|
+
initSounds(locale: string): void;
|
|
41
44
|
private tempLookAt;
|
|
42
45
|
setCamera(params: CameraParams, cb?: () => void): void;
|
|
43
46
|
private width;
|
|
@@ -51,6 +54,8 @@ export declare class Avatar extends EventTarget {
|
|
|
51
54
|
private speakingAnimationName;
|
|
52
55
|
private idleAnimationName;
|
|
53
56
|
setTalking(talking: boolean): void;
|
|
57
|
+
playReaction(speech: string, animation: string): void;
|
|
58
|
+
speakPhrase(phrase: string): void;
|
|
54
59
|
externalLaunchAnimationAction: (name: ExternallyAvailableActions) => void;
|
|
55
60
|
private playAction;
|
|
56
61
|
playVideo: (id: string, speak?: boolean) => Promise<unknown>;
|
|
@@ -58,6 +63,6 @@ export declare class Avatar extends EventTarget {
|
|
|
58
63
|
showcaseBlendShape(shapeName: string): void;
|
|
59
64
|
render(): void;
|
|
60
65
|
onAllAssetsLoaded: () => void;
|
|
61
|
-
private
|
|
66
|
+
private addDebugGui;
|
|
62
67
|
}
|
|
63
68
|
export {};
|