bridgeapp-ai-chat-widget 0.2.12 → 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 +1 -0
- package/dist/avatar/Avatar.d.ts +3 -1
- package/dist/bridge-ai-chat-widget.es.js +20593 -20004
- package/dist/bridge-ai-chat-widget.umd.js +278 -278
- package/dist/constants.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.types.d.ts +2 -0
- package/dist/ui/components/VoiceModeMessage.d.ts +5 -2
- package/package.json +1 -1
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
|
}
|
package/dist/index.types.d.ts
CHANGED
|
@@ -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);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { ParticipantType } from "@/api/messages.api.types";
|
|
2
1
|
import { type ComponentProps } from "react";
|
|
3
|
-
|
|
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