bridgeapp-ai-chat-widget 0.2.12 → 0.2.14

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.
@@ -0,0 +1,2 @@
1
+ export declare const SM_BREAKPOINT = 640;
2
+ export declare const SHOW_REACTION_MESSAGE_DURATION = 5000;
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ export declare class ChatWidgetInstance extends EventTarget {
12
12
  private playAnimationImpl;
13
13
  private executeReactionImpl;
14
14
  private resolveAssetPath;
15
+ private setLocaleImpl;
15
16
  constructor(config: WidgetConfig);
16
17
  private initGui;
17
18
  private init;
@@ -28,5 +29,6 @@ export declare class ChatWidgetInstance extends EventTarget {
28
29
  text: string;
29
30
  }): void;
30
31
  sendServiceMessage(message: string, animationName: ExternallyAvailableActions): void;
32
+ setLocale(locale: string): void;
31
33
  destroy(): void;
32
34
  }
@@ -14,11 +14,13 @@ export type WidgetConfig = {
14
14
  };
15
15
  AIAvatar?: boolean;
16
16
  debug?: boolean;
17
+ avatarDebug?: boolean;
17
18
  background?: boolean;
18
19
  voiceEnabled?: boolean;
19
20
  footer?: boolean;
20
21
  /** When true, launcher + open/close behave as today. When false, closing hides the widget entirely until `setOpen(true)`. */
21
22
  manualOpen?: boolean;
23
+ locale?: string;
22
24
  };
23
25
  export declare class ChatWidgetInstance {
24
26
  constructor(config: WidgetConfig);
@@ -26,5 +28,11 @@ export declare class ChatWidgetInstance {
26
28
  playAnimation(name: ExternallyAvailableActions): void;
27
29
  setCustomerInteractionSession(session: CustomerInteractionSession): void;
28
30
  setOpen(open: boolean): void;
31
+ setLocale(locale: string): void;
32
+ executeReaction(params: {
33
+ animation: ExternallyAvailableActions;
34
+ voice: string;
35
+ text: string;
36
+ }): void;
29
37
  }
30
38
  export type { CustomerInteractionSession };
@@ -1,6 +1,9 @@
1
- import { ParticipantType } from "@/api/messages.api.types";
2
1
  import { type ComponentProps } from "react";
3
- export type VoiceModeMessageSource = ParticipantType | "REACTION_MESSAGE";
2
+ import { ParticipantType } from "@/api/messages.api.types";
3
+ export declare enum VoiceModeMessageSourceType {
4
+ ReactionMessage = "REACTION_MESSAGE"
5
+ }
6
+ export type VoiceModeMessageSource = ParticipantType | VoiceModeMessageSourceType;
4
7
  type ChatMessageProps = ComponentProps<"div"> & {
5
8
  message: string;
6
9
  source: VoiceModeMessageSource;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bridgeapp-ai-chat-widget",
3
3
  "private": false,
4
- "version": "0.2.12",
4
+ "version": "0.2.14",
5
5
  "description": "Embeddable chat widget for communication with Bridge AI agent",
6
6
  "type": "module",
7
7
  "main": "dist/bridge-ai-chat-widget.umd.js",