@botuyo/chat-widget-standalone 1.7.4 → 1.7.6
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-Dvsd3dvs.js → AudioPlayer-VLya3R1O.js} +2 -2
- package/dist/{AudioPlayer-Dvsd3dvs.js.map → AudioPlayer-VLya3R1O.js.map} +1 -1
- package/dist/{Avatar3D-Bsemx1XZ.js → Avatar3D-Drg57rjt.js} +2 -2
- package/dist/{Avatar3D-Bsemx1XZ.js.map → Avatar3D-Drg57rjt.js.map} +1 -1
- package/dist/{Gallery-C16PGHL3.js → Gallery-BEHHMzMN.js} +2 -2
- package/dist/{Gallery-C16PGHL3.js.map → Gallery-BEHHMzMN.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/VoiceCallOverlay.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/voice/types.d.ts +2 -109
- package/dist/src/chat-widget/voice/types.d.ts.map +1 -1
- package/dist/{standalone-3qms0iXz.js → standalone-CtSlpZZ_.js} +5 -5
- package/dist/standalone-CtSlpZZ_.js.map +1 -0
- package/dist/stats-umd.html +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/dist/src/chat-widget/components/VoiceInputArea.d.ts +0 -26
- package/dist/src/chat-widget/components/VoiceInputArea.d.ts.map +0 -1
- package/dist/src/chat-widget/voice/components/VoiceButton.d.ts +0 -13
- package/dist/src/chat-widget/voice/components/VoiceButton.d.ts.map +0 -1
- package/dist/src/chat-widget/voice/components/VoiceChatOverlay.d.ts +0 -12
- package/dist/src/chat-widget/voice/components/VoiceChatOverlay.d.ts.map +0 -1
- package/dist/src/chat-widget/voice/components/WaveformVisualizer.d.ts +0 -12
- package/dist/src/chat-widget/voice/components/WaveformVisualizer.d.ts.map +0 -1
- package/dist/src/chat-widget/voice/components/index.d.ts +0 -8
- package/dist/src/chat-widget/voice/components/index.d.ts.map +0 -1
- package/dist/src/chat-widget/voice/index.d.ts +0 -11
- package/dist/src/chat-widget/voice/index.d.ts.map +0 -1
- package/dist/src/chat-widget/voice/useVoiceChat.d.ts +0 -13
- package/dist/src/chat-widget/voice/useVoiceChat.d.ts.map +0 -1
- package/dist/src/chat-widget/voice/useVoiceState.d.ts +0 -38
- package/dist/src/chat-widget/voice/useVoiceState.d.ts.map +0 -1
- package/dist/standalone-3qms0iXz.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @package @botuyo/chat-widget
|
|
3
|
-
* Voice Input Area Component
|
|
4
|
-
*
|
|
5
|
-
* Extends InputArea with voice chat functionality.
|
|
6
|
-
* This is a wrapper that adds voice button and overlay to the standard InputArea.
|
|
7
|
-
*/
|
|
8
|
-
import { type InputAreaProps } from './InputArea';
|
|
9
|
-
import { type VoiceConfig } from '../voice';
|
|
10
|
-
export interface VoiceInputAreaProps extends InputAreaProps {
|
|
11
|
-
/** Voice chat configuration (Enterprise tier) */
|
|
12
|
-
voiceConfig?: VoiceConfig;
|
|
13
|
-
/** API base URL for voice WebSocket */
|
|
14
|
-
apiBaseUrl: string;
|
|
15
|
-
/** Tenant ID for voice authentication */
|
|
16
|
-
tenantId: string;
|
|
17
|
-
/** Session ID for voice authentication */
|
|
18
|
-
sessionId: string;
|
|
19
|
-
/** Callback when voice message transcription is complete */
|
|
20
|
-
onVoiceTranscription?: (text: string) => void;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* InputArea with integrated voice chat functionality
|
|
24
|
-
*/
|
|
25
|
-
export declare function VoiceInputArea({ voiceConfig, apiBaseUrl, tenantId, sessionId, onVoiceTranscription, onSendMessage, primaryColor, isConnected, ...inputAreaProps }: VoiceInputAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
//# sourceMappingURL=VoiceInputArea.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VoiceInputArea.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/components/VoiceInputArea.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EAA+C,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AAGxF,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,iDAAiD;IACjD,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAA;IAClB,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAA;IAChB,0CAA0C;IAC1C,SAAS,EAAE,MAAM,CAAA;IACjB,4DAA4D;IAC5D,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,EACT,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,GAAG,cAAc,EAClB,EAAE,mBAAmB,2CA0HrB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @package @botuyo/chat-widget
|
|
3
|
-
* Voice Button Component
|
|
4
|
-
*
|
|
5
|
-
* Microphone button for initiating voice chat.
|
|
6
|
-
* Supports press-and-hold or tap interactions.
|
|
7
|
-
*/
|
|
8
|
-
import type { VoiceButtonProps } from '../types';
|
|
9
|
-
/**
|
|
10
|
-
* Voice recording button with visual feedback
|
|
11
|
-
*/
|
|
12
|
-
export declare function VoiceButton({ state, isSupported, primaryColor, onPress, onRelease, onCancel, disabled, }: VoiceButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
-
//# sourceMappingURL=VoiceButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VoiceButton.d.ts","sourceRoot":"","sources":["../../../../../src/chat-widget/voice/components/VoiceButton.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAAW,EACX,YAAY,EACZ,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAgB,GACjB,EAAE,gBAAgB,kDAiHlB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @package @botuyo/chat-widget
|
|
3
|
-
* Voice Chat Overlay Component
|
|
4
|
-
*
|
|
5
|
-
* Full-screen overlay for voice chat interaction with visual feedback.
|
|
6
|
-
*/
|
|
7
|
-
import type { VoiceChatOverlayProps } from '../types';
|
|
8
|
-
/**
|
|
9
|
-
* Full-screen overlay for voice chat interaction
|
|
10
|
-
*/
|
|
11
|
-
export declare function VoiceChatOverlay({ isOpen, state, partialTranscription, finalTranscription, botResponse, recordingDuration, maxDuration, onClose, onCancel, }: VoiceChatOverlayProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
-
//# sourceMappingURL=VoiceChatOverlay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VoiceChatOverlay.d.ts","sourceRoot":"","sources":["../../../../../src/chat-widget/voice/components/VoiceChatOverlay.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAYrD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,KAAK,EACL,oBAAoB,EACpB,kBAAkB,EAClB,WAAW,EACX,iBAAiB,EACjB,WAAgB,EAChB,OAAO,EACP,QAAQ,GACT,EAAE,qBAAqB,kDAuJvB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @package @botuyo/chat-widget
|
|
3
|
-
* Waveform Visualizer Component
|
|
4
|
-
*
|
|
5
|
-
* Animated audio waveform visualization for voice recording feedback.
|
|
6
|
-
*/
|
|
7
|
-
import type { WaveformVisualizerProps } from '../types';
|
|
8
|
-
/**
|
|
9
|
-
* Animated waveform bars for audio visualization
|
|
10
|
-
*/
|
|
11
|
-
export declare function WaveformVisualizer({ isActive, className, barCount, color, }: WaveformVisualizerProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=WaveformVisualizer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WaveformVisualizer.d.ts","sourceRoot":"","sources":["../../../../../src/chat-widget/voice/components/WaveformVisualizer.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAEvD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,SAAS,EACT,QAAY,EACZ,KAAK,GACN,EAAE,uBAAuB,2CAiDzB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @package @botuyo/chat-widget
|
|
3
|
-
* Voice Components Barrel Export
|
|
4
|
-
*/
|
|
5
|
-
export { VoiceButton } from './VoiceButton';
|
|
6
|
-
export { VoiceChatOverlay } from './VoiceChatOverlay';
|
|
7
|
-
export { WaveformVisualizer } from './WaveformVisualizer';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @package @botuyo/chat-widget
|
|
3
|
-
* Voice Module Barrel Export
|
|
4
|
-
*/
|
|
5
|
-
export type { VoiceState, VoiceServerMessage, UseVoiceChatOptions, UseVoiceChatReturn, VoiceConfig, VoiceButtonProps, VoiceChatOverlayProps, WaveformVisualizerProps, } from './types';
|
|
6
|
-
export { VOICE_AUDIO_CONFIG } from './types';
|
|
7
|
-
export { ENHANCED_AUDIO_CONSTRAINTS, NOISE_GATE_THRESHOLD, NOISE_GATE_HOLD_FRAMES, ENHANCEMENT_CONFIG, createEnhancementChain, } from './audioEnhancement';
|
|
8
|
-
export { useVoiceChat } from './useVoiceChat';
|
|
9
|
-
export { useVoiceState } from './useVoiceState';
|
|
10
|
-
export { VoiceButton, VoiceChatOverlay, WaveformVisualizer } from './components';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @package @botuyo/chat-widget
|
|
3
|
-
* Voice Chat Hook
|
|
4
|
-
*
|
|
5
|
-
* Main hook for managing real-time voice chat functionality via WebSocket.
|
|
6
|
-
* Handles audio capture, streaming, and playback.
|
|
7
|
-
*/
|
|
8
|
-
import type { UseVoiceChatOptions, UseVoiceChatReturn } from './types';
|
|
9
|
-
/**
|
|
10
|
-
* Hook for managing real-time voice chat
|
|
11
|
-
*/
|
|
12
|
-
export declare function useVoiceChat(options: UseVoiceChatOptions): UseVoiceChatReturn;
|
|
13
|
-
//# sourceMappingURL=useVoiceChat.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useVoiceChat.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/voice/useVoiceChat.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAsB,MAAM,SAAS,CAAA;AA+E1F;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,kBAAkB,CAob7E"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @package @botuyo/chat-widget
|
|
3
|
-
* Voice State Machine Hook
|
|
4
|
-
*
|
|
5
|
-
* Manages the voice chat state machine with transitions and recording timer.
|
|
6
|
-
*/
|
|
7
|
-
import type { VoiceState } from './types';
|
|
8
|
-
interface UseVoiceStateOptions {
|
|
9
|
-
/** Maximum recording duration in seconds */
|
|
10
|
-
maxDuration?: number;
|
|
11
|
-
/** Callback when max duration is reached */
|
|
12
|
-
onMaxDurationReached?: () => void;
|
|
13
|
-
/** Callback when state changes */
|
|
14
|
-
onStateChange?: (state: VoiceState) => void;
|
|
15
|
-
}
|
|
16
|
-
interface UseVoiceStateReturn {
|
|
17
|
-
/** Current voice state */
|
|
18
|
-
state: VoiceState;
|
|
19
|
-
/** Recording duration in seconds */
|
|
20
|
-
recordingDuration: number;
|
|
21
|
-
/** Transition to a new state */
|
|
22
|
-
transition: (newState: VoiceState) => void;
|
|
23
|
-
/** Reset to idle state */
|
|
24
|
-
reset: () => void;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Hook for managing voice chat state machine
|
|
28
|
-
*
|
|
29
|
-
* Valid transitions:
|
|
30
|
-
* - idle → listening
|
|
31
|
-
* - listening → processing
|
|
32
|
-
* - processing → speaking
|
|
33
|
-
* - speaking → idle
|
|
34
|
-
* - any → idle (reset/cancel)
|
|
35
|
-
*/
|
|
36
|
-
export declare function useVoiceState(options?: UseVoiceStateOptions): UseVoiceStateReturn;
|
|
37
|
-
export {};
|
|
38
|
-
//# sourceMappingURL=useVoiceState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useVoiceState.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/voice/useVoiceState.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGzC,UAAU,oBAAoB;IAC5B,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4CAA4C;IAC5C,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAA;IACjC,kCAAkC;IAClC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;CAC5C;AAED,UAAU,mBAAmB;IAC3B,0BAA0B;IAC1B,KAAK,EAAE,UAAU,CAAA;IACjB,oCAAoC;IACpC,iBAAiB,EAAE,MAAM,CAAA;IACzB,gCAAgC;IAChC,UAAU,EAAE,CAAC,QAAQ,EAAE,UAAU,KAAK,IAAI,CAAA;IAC1C,0BAA0B;IAC1B,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB,GAAG,mBAAmB,CAuFrF"}
|