@botuyo/chat-widget-standalone 1.7.1 → 1.7.3
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/{AudioPlayer-JRagp-xt.js → AudioPlayer-DW3DqVQn.js} +2 -2
- package/dist/{AudioPlayer-JRagp-xt.js.map → AudioPlayer-DW3DqVQn.js.map} +1 -1
- package/dist/Avatar3D-DXe_r7CA.js +9 -0
- package/dist/Avatar3D-DXe_r7CA.js.map +1 -0
- package/dist/{Gallery-CfNQ35uQ.js → Gallery-BjSJxlSQ.js} +2 -2
- package/dist/{Gallery-CfNQ35uQ.js.map → Gallery-BjSJxlSQ.js.map} +1 -1
- package/dist/botuyo-chat.es.js +1 -1
- package/dist/botuyo-chat.umd.js +1 -1
- package/dist/botuyo-chat.umd.js.map +1 -1
- package/dist/src/chat-widget/components/Avatar3DPreview.d.ts.map +1 -1
- package/dist/src/chat-widget/components/index.d.ts +0 -1
- package/dist/src/chat-widget/components/index.d.ts.map +1 -1
- package/dist/src/chat-widget/utils/avatar3d.d.ts +10 -7
- package/dist/src/chat-widget/utils/avatar3d.d.ts.map +1 -1
- package/dist/src/chat-widget/voice/components/index.d.ts +0 -2
- package/dist/src/chat-widget/voice/components/index.d.ts.map +1 -1
- package/dist/src/chat-widget/voice/index.d.ts +2 -3
- package/dist/src/chat-widget/voice/index.d.ts.map +1 -1
- package/dist/src/chat-widget/voice/types.d.ts +2 -103
- package/dist/src/chat-widget/voice/types.d.ts.map +1 -1
- package/dist/{standalone-Ns7cLeGw.js → standalone-CCynj-Ta.js} +11 -11
- package/dist/standalone-CCynj-Ta.js.map +1 -0
- package/dist/stats-umd.html +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/dist/Avatar3D-BKfp_OvE.js +0 -9
- package/dist/Avatar3D-BKfp_OvE.js.map +0 -1
- package/dist/src/chat-widget/components/LiveCallInputArea.d.ts +0 -29
- package/dist/src/chat-widget/components/LiveCallInputArea.d.ts.map +0 -1
- package/dist/src/chat-widget/voice/components/CallButton.d.ts +0 -12
- package/dist/src/chat-widget/voice/components/CallButton.d.ts.map +0 -1
- package/dist/src/chat-widget/voice/components/LiveCallOverlay.d.ts +0 -12
- package/dist/src/chat-widget/voice/components/LiveCallOverlay.d.ts.map +0 -1
- package/dist/src/chat-widget/voice/useLiveCall.d.ts +0 -13
- package/dist/src/chat-widget/voice/useLiveCall.d.ts.map +0 -1
- package/dist/standalone-Ns7cLeGw.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar3DPreview.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/components/Avatar3DPreview.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAcH,UAAU,oBAAoB;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,qEAAqE;IACrE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oEAAoE;IACpE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,wCAAwC;IACxC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CACnC;
|
|
1
|
+
{"version":3,"file":"Avatar3DPreview.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/components/Avatar3DPreview.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAcH,UAAU,oBAAoB;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,qEAAqE;IACrE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oEAAoE;IACpE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,wCAAwC;IACxC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CACnC;AA6QD,wBAAgB,eAAe,CAAC,EAC9B,GAAG,EACH,SAAc,EACd,cAAc,EACd,cAAc,EACd,UAAiB,EACjB,WAAkB,EAClB,UAAiB,EACjB,YAAkC,EAClC,UAA0C,EAC1C,MAAM,EACN,OAAO,GACR,EAAE,oBAAoB,kDAgGtB"}
|
|
@@ -10,7 +10,6 @@ export { ToolProposalCard } from './ToolProposalCard';
|
|
|
10
10
|
export { TypingIndicator } from './TypingIndicator';
|
|
11
11
|
export { InputArea } from './InputArea';
|
|
12
12
|
export { VoiceInputArea } from './VoiceInputArea';
|
|
13
|
-
export { LiveCallInputArea } from './LiveCallInputArea';
|
|
14
13
|
export { Gallery } from './Gallery';
|
|
15
14
|
export { ErrorBoundary } from './ErrorBoundary';
|
|
16
15
|
export { LanguageSelector } from './LanguageSelector';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Pure 3D-avatar helpers shared by the voice-call avatar (`Avatar3D`) and the
|
|
3
|
-
* dashboard previewer (`Avatar3DPreview`).
|
|
3
|
+
* dashboard/landing previewer (`Avatar3DPreview`).
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* The preview framing was already correct, so it is the single source of truth:
|
|
6
|
+
* both the call and the preview place the camera with `computeGlbFraming`, which
|
|
7
|
+
* guarantees the call shows exactly what the preview shows — same distance, same
|
|
8
|
+
* front-facing orientation — instead of the two drifting apart (the call used to
|
|
9
|
+
* render the avatar from behind, "de espaldas").
|
|
9
10
|
*
|
|
10
11
|
* No three.js / R3F imports on purpose: this is plain math so it is trivially
|
|
11
12
|
* unit-testable in happy-dom without mocking the WebGL stack.
|
|
12
13
|
*/
|
|
13
|
-
export type AvatarFramingMode = 'bust' | 'portrait';
|
|
14
14
|
/** Bounding-box size (metres) of the model AFTER it has been centred on the origin. */
|
|
15
15
|
export interface AvatarSize {
|
|
16
16
|
x: number;
|
|
@@ -30,8 +30,11 @@ export interface AvatarFraming {
|
|
|
30
30
|
* `(0,0,0)`), so it spans `[-size.y/2, +size.y/2]` vertically. The camera is
|
|
31
31
|
* placed on the **positive Z axis** because glTF / Ready-Player-Me humanoids
|
|
32
32
|
* face +Z — this is what stops the avatar from appearing "de espaldas".
|
|
33
|
+
*
|
|
34
|
+
* The numbers mirror the preview's original (correct) framing, so the voice call
|
|
35
|
+
* and the preview render the avatar identically.
|
|
33
36
|
*/
|
|
34
|
-
export declare function computeGlbFraming(size: AvatarSize, fovDegrees: number
|
|
37
|
+
export declare function computeGlbFraming(size: AvatarSize, fovDegrees: number): AvatarFraming;
|
|
35
38
|
/**
|
|
36
39
|
* Pick the single idle animation clip to auto-play, or `null`.
|
|
37
40
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar3d.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/utils/avatar3d.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"avatar3d.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/utils/avatar3d.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,uFAAuF;AACvF,MAAM,WAAW,UAAU;IACzB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED,MAAM,WAAW,aAAa;IAC5B,8FAA8F;IAC9F,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,6EAA6E;IAC7E,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC;AAQD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,GAAG,aAAa,CAYrF;AAKD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS;IAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,GAAG,CAAC,GAAG,IAAI,CAMhG"}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
* @package @botuyo/chat-widget
|
|
3
3
|
* Voice Components Barrel Export
|
|
4
4
|
*/
|
|
5
|
-
export { CallButton } from './CallButton';
|
|
6
|
-
export { LiveCallOverlay } from './LiveCallOverlay';
|
|
7
5
|
export { VoiceButton } from './VoiceButton';
|
|
8
6
|
export { VoiceChatOverlay } from './VoiceChatOverlay';
|
|
9
7
|
export { WaveformVisualizer } from './WaveformVisualizer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat-widget/voice/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat-widget/voice/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
* @package @botuyo/chat-widget
|
|
3
3
|
* Voice Module Barrel Export
|
|
4
4
|
*/
|
|
5
|
-
export type {
|
|
5
|
+
export type { VoiceState, VoiceServerMessage, UseVoiceChatOptions, UseVoiceChatReturn, VoiceConfig, VoiceButtonProps, VoiceChatOverlayProps, WaveformVisualizerProps, } from './types';
|
|
6
6
|
export { VOICE_AUDIO_CONFIG } from './types';
|
|
7
7
|
export { ENHANCED_AUDIO_CONSTRAINTS, NOISE_GATE_THRESHOLD, NOISE_GATE_HOLD_FRAMES, ENHANCEMENT_CONFIG, createEnhancementChain, } from './audioEnhancement';
|
|
8
|
-
export { useLiveCall } from './useLiveCall';
|
|
9
8
|
export { useVoiceChat } from './useVoiceChat';
|
|
10
9
|
export { useVoiceState } from './useVoiceState';
|
|
11
|
-
export {
|
|
10
|
+
export { VoiceButton, VoiceChatOverlay, WaveformVisualizer } from './components';
|
|
12
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/voice/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,EAEV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/voice/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,EAEV,UAAU,EACV,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAG5C,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG/C,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -2,91 +2,15 @@
|
|
|
2
2
|
* @package @botuyo/chat-widget
|
|
3
3
|
* Voice Module Types
|
|
4
4
|
*
|
|
5
|
-
* Types for
|
|
5
|
+
* Types for Voice Notes (async voice messages). The realtime call path lives in
|
|
6
|
+
* components/VoiceCallOverlay.tsx over socket.io (see types/socket.ts).
|
|
6
7
|
*/
|
|
7
|
-
/**
|
|
8
|
-
* Live Call state machine states
|
|
9
|
-
*/
|
|
10
|
-
export type LiveCallState = 'idle' | 'calling' | 'ready' | 'listening' | 'thinking' | 'speaking';
|
|
11
|
-
/**
|
|
12
|
-
* Live Call client → server messages
|
|
13
|
-
*/
|
|
14
|
-
export interface LiveCallAuthMessage {
|
|
15
|
-
type: 'auth';
|
|
16
|
-
tenantId: string;
|
|
17
|
-
sessionId: string;
|
|
18
|
-
conversationId?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface LiveCallStartMessage {
|
|
21
|
-
type: 'start_call';
|
|
22
|
-
}
|
|
23
|
-
export interface LiveCallEndMessage {
|
|
24
|
-
type: 'end_call';
|
|
25
|
-
}
|
|
26
|
-
export type LiveCallClientMessage = LiveCallAuthMessage | LiveCallStartMessage | LiveCallEndMessage;
|
|
27
|
-
/**
|
|
28
|
-
* Live Call server → client messages
|
|
29
|
-
*/
|
|
30
|
-
export interface LiveCallStartedMessage {
|
|
31
|
-
type: 'call_started';
|
|
32
|
-
greeting?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface LiveCallListeningMessage {
|
|
35
|
-
type: 'listening';
|
|
36
|
-
}
|
|
37
|
-
export interface LiveCallTranscriptionMessage {
|
|
38
|
-
type: 'transcription';
|
|
39
|
-
text: string;
|
|
40
|
-
}
|
|
41
|
-
export interface LiveCallSpeakingMessage {
|
|
42
|
-
type: 'speaking';
|
|
43
|
-
}
|
|
44
|
-
export interface LiveCallResponseTextMessage {
|
|
45
|
-
type: 'response_text';
|
|
46
|
-
text: string;
|
|
47
|
-
}
|
|
48
|
-
export interface LiveCallDoneMessage {
|
|
49
|
-
type: 'done';
|
|
50
|
-
}
|
|
51
|
-
export interface LiveCallErrorMessage {
|
|
52
|
-
type: 'error';
|
|
53
|
-
code: LiveCallErrorCode;
|
|
54
|
-
message: string;
|
|
55
|
-
}
|
|
56
|
-
export type LiveCallErrorCode = 'voice_disabled' | 'quota_exceeded' | 'connection_error' | 'microphone_denied' | 'browser_unsupported';
|
|
57
|
-
export type LiveCallServerMessage = LiveCallStartedMessage | LiveCallListeningMessage | LiveCallTranscriptionMessage | LiveCallSpeakingMessage | LiveCallResponseTextMessage | LiveCallDoneMessage | LiveCallErrorMessage;
|
|
58
|
-
/**
|
|
59
|
-
* Live Call hook options
|
|
60
|
-
*/
|
|
61
|
-
export interface UseLiveCallOptions {
|
|
62
|
-
apiBaseUrl: string;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
sessionId: string;
|
|
65
|
-
conversationId?: string;
|
|
66
|
-
wsEndpoint?: string;
|
|
67
|
-
onStateChange?: (state: LiveCallState) => void;
|
|
68
|
-
onTranscription?: (text: string) => void;
|
|
69
|
-
onBotResponse?: (text: string) => void;
|
|
70
|
-
onError?: (error: LiveCallErrorMessage) => void;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Live Call hook return type
|
|
74
|
-
*/
|
|
75
|
-
export interface UseLiveCallReturn {
|
|
76
|
-
state: LiveCallState;
|
|
77
|
-
isSupported: boolean;
|
|
78
|
-
callDuration: number;
|
|
79
|
-
startCall: () => Promise<void>;
|
|
80
|
-
endCall: () => void;
|
|
81
|
-
}
|
|
82
8
|
/**
|
|
83
9
|
* Voice Notes state (simpler, async flow)
|
|
84
|
-
* @deprecated Use LiveCallState for real-time calls
|
|
85
10
|
*/
|
|
86
11
|
export type VoiceState = 'idle' | 'listening' | 'processing' | 'speaking';
|
|
87
12
|
/**
|
|
88
13
|
* Voice Notes server → client messages
|
|
89
|
-
* @deprecated Use LiveCallServerMessage for real-time calls
|
|
90
14
|
*/
|
|
91
15
|
export interface VoiceTranscriptionPartial {
|
|
92
16
|
type: 'transcription_partial';
|
|
@@ -114,7 +38,6 @@ export interface VoiceErrorMessage {
|
|
|
114
38
|
export type VoiceServerMessage = VoiceTranscriptionPartial | VoiceTranscriptionFinal | VoiceResponseStart | VoiceResponseText | VoiceResponseEnd | VoiceErrorMessage;
|
|
115
39
|
/**
|
|
116
40
|
* Voice Notes hook options
|
|
117
|
-
* @deprecated Use UseLiveCallOptions for real-time calls
|
|
118
41
|
*/
|
|
119
42
|
export interface UseVoiceChatOptions {
|
|
120
43
|
apiBaseUrl: string;
|
|
@@ -130,7 +53,6 @@ export interface UseVoiceChatOptions {
|
|
|
130
53
|
}
|
|
131
54
|
/**
|
|
132
55
|
* Voice Notes hook return type
|
|
133
|
-
* @deprecated Use UseLiveCallReturn for real-time calls
|
|
134
56
|
*/
|
|
135
57
|
export interface UseVoiceChatReturn {
|
|
136
58
|
state: VoiceState;
|
|
@@ -171,18 +93,6 @@ export declare const VOICE_AUDIO_CONFIG: {
|
|
|
171
93
|
readonly channels: 1;
|
|
172
94
|
};
|
|
173
95
|
};
|
|
174
|
-
/**
|
|
175
|
-
* Call button props (for Live Call)
|
|
176
|
-
*/
|
|
177
|
-
export interface CallButtonProps {
|
|
178
|
-
state: LiveCallState;
|
|
179
|
-
isSupported: boolean;
|
|
180
|
-
callDuration?: number;
|
|
181
|
-
primaryColor?: string;
|
|
182
|
-
onStartCall: () => void;
|
|
183
|
-
onEndCall: () => void;
|
|
184
|
-
disabled?: boolean;
|
|
185
|
-
}
|
|
186
96
|
/**
|
|
187
97
|
* Voice button props (for Voice Notes - legacy)
|
|
188
98
|
*/
|
|
@@ -204,17 +114,6 @@ export interface WaveformVisualizerProps {
|
|
|
204
114
|
barCount?: number;
|
|
205
115
|
color?: string;
|
|
206
116
|
}
|
|
207
|
-
/**
|
|
208
|
-
* Live call overlay props
|
|
209
|
-
*/
|
|
210
|
-
export interface LiveCallOverlayProps {
|
|
211
|
-
isOpen: boolean;
|
|
212
|
-
state: LiveCallState;
|
|
213
|
-
callDuration: number;
|
|
214
|
-
transcription?: string;
|
|
215
|
-
botResponse?: string;
|
|
216
|
-
onEndCall: () => void;
|
|
217
|
-
}
|
|
218
117
|
/**
|
|
219
118
|
* Voice chat overlay props (legacy)
|
|
220
119
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/voice/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/voice/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,CAAA;AAEzE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,uBAAuB,CAAA;IAC7B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,qBAAqB,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,gBAAgB,CAAA;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,eAAe,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,cAAc,CAAA;CACrB;AAED,MA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