@convai/web-sdk 0.3.1-beta.2 → 0.3.1-beta.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.
Files changed (67) hide show
  1. package/dist/types/vanilla/ConvaiWidget.d.ts.map +1 -1
  2. package/dist/umd/convai.umd.js +1 -1
  3. package/dist/vanilla/index.cjs +5 -3
  4. package/dist/vanilla/index.js +5 -3
  5. package/package.json +2 -2
  6. package/dist/types/dev.d.ts +0 -12
  7. package/dist/types/dev.d.ts.map +0 -1
  8. package/dist/types/index.d.ts +0 -2
  9. package/dist/types/index.d.ts.map +0 -1
  10. package/dist/types/react/components/ConvaiWidget.d.ts +0 -68
  11. package/dist/types/react/components/ConvaiWidget.d.ts.map +0 -1
  12. package/dist/types/react/components/index.d.ts +0 -2
  13. package/dist/types/react/components/index.d.ts.map +0 -1
  14. package/dist/types/react/components/rtc-widget/components/AudioSettingsPanel.d.ts +0 -10
  15. package/dist/types/react/components/rtc-widget/components/AudioSettingsPanel.d.ts.map +0 -1
  16. package/dist/types/react/components/rtc-widget/components/AudioVisualizer.d.ts +0 -36
  17. package/dist/types/react/components/rtc-widget/components/AudioVisualizer.d.ts.map +0 -1
  18. package/dist/types/react/components/rtc-widget/components/ConviMessage.d.ts +0 -10
  19. package/dist/types/react/components/rtc-widget/components/ConviMessage.d.ts.map +0 -1
  20. package/dist/types/react/components/rtc-widget/components/FloatingVideo.d.ts +0 -9
  21. package/dist/types/react/components/rtc-widget/components/FloatingVideo.d.ts.map +0 -1
  22. package/dist/types/react/components/rtc-widget/components/MarkdownRenderer.d.ts +0 -7
  23. package/dist/types/react/components/rtc-widget/components/MarkdownRenderer.d.ts.map +0 -1
  24. package/dist/types/react/components/rtc-widget/components/MessageBubble.d.ts +0 -10
  25. package/dist/types/react/components/rtc-widget/components/MessageBubble.d.ts.map +0 -1
  26. package/dist/types/react/components/rtc-widget/components/MessageList.d.ts +0 -11
  27. package/dist/types/react/components/rtc-widget/components/MessageList.d.ts.map +0 -1
  28. package/dist/types/react/components/rtc-widget/components/UserMessage.d.ts +0 -9
  29. package/dist/types/react/components/rtc-widget/components/UserMessage.d.ts.map +0 -1
  30. package/dist/types/react/components/rtc-widget/components/conviComponents/ConviButton.d.ts +0 -6
  31. package/dist/types/react/components/rtc-widget/components/conviComponents/ConviButton.d.ts.map +0 -1
  32. package/dist/types/react/components/rtc-widget/components/conviComponents/ConviFooter.d.ts +0 -25
  33. package/dist/types/react/components/rtc-widget/components/conviComponents/ConviFooter.d.ts.map +0 -1
  34. package/dist/types/react/components/rtc-widget/components/conviComponents/ConviHeader.d.ts +0 -17
  35. package/dist/types/react/components/rtc-widget/components/conviComponents/ConviHeader.d.ts.map +0 -1
  36. package/dist/types/react/components/rtc-widget/components/conviComponents/SettingsTray.d.ts +0 -12
  37. package/dist/types/react/components/rtc-widget/components/conviComponents/SettingsTray.d.ts.map +0 -1
  38. package/dist/types/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.d.ts +0 -12
  39. package/dist/types/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.d.ts.map +0 -1
  40. package/dist/types/react/components/rtc-widget/components/conviComponents/index.d.ts +0 -6
  41. package/dist/types/react/components/rtc-widget/components/conviComponents/index.d.ts.map +0 -1
  42. package/dist/types/react/components/rtc-widget/components/index.d.ts +0 -9
  43. package/dist/types/react/components/rtc-widget/components/index.d.ts.map +0 -1
  44. package/dist/types/react/components/rtc-widget/index.d.ts +0 -6
  45. package/dist/types/react/components/rtc-widget/index.d.ts.map +0 -1
  46. package/dist/types/react/components/rtc-widget/styles/framerConfig.d.ts +0 -116
  47. package/dist/types/react/components/rtc-widget/styles/framerConfig.d.ts.map +0 -1
  48. package/dist/types/react/components/rtc-widget/styles/icons.d.ts +0 -28
  49. package/dist/types/react/components/rtc-widget/styles/icons.d.ts.map +0 -1
  50. package/dist/types/react/components/rtc-widget/styles/index.d.ts +0 -6
  51. package/dist/types/react/components/rtc-widget/styles/index.d.ts.map +0 -1
  52. package/dist/types/react/components/rtc-widget/styles/styledComponents.d.ts +0 -90
  53. package/dist/types/react/components/rtc-widget/styles/styledComponents.d.ts.map +0 -1
  54. package/dist/types/react/components/rtc-widget/styles/theme.d.ts +0 -188
  55. package/dist/types/react/components/rtc-widget/styles/theme.d.ts.map +0 -1
  56. package/dist/types/react/components/rtc-widget/types/index.d.ts +0 -60
  57. package/dist/types/react/components/rtc-widget/types/index.d.ts.map +0 -1
  58. package/dist/types/react/hooks/index.d.ts +0 -4
  59. package/dist/types/react/hooks/index.d.ts.map +0 -1
  60. package/dist/types/react/hooks/useCharacterInfo.d.ts +0 -17
  61. package/dist/types/react/hooks/useCharacterInfo.d.ts.map +0 -1
  62. package/dist/types/react/hooks/useConvaiClient.d.ts +0 -141
  63. package/dist/types/react/hooks/useConvaiClient.d.ts.map +0 -1
  64. package/dist/types/react/hooks/useLocalCameraTrack.d.ts +0 -22
  65. package/dist/types/react/hooks/useLocalCameraTrack.d.ts.map +0 -1
  66. package/dist/types/react/index.d.ts +0 -9
  67. package/dist/types/react/index.d.ts.map +0 -1
@@ -2519,7 +2519,7 @@ const Icons = {
2519
2519
  * ```
2520
2520
  */
2521
2521
  function createConvaiWidget(container, options) {
2522
- const { convaiClient, showVideo = true, showScreenShare = true, defaultVoiceMode = true } = options;
2522
+ const { convaiClient, showVideo = true, showScreenShare = true, defaultVoiceMode = true, } = options;
2523
2523
  // Inject global styles
2524
2524
  injectGlobalStyles();
2525
2525
  // State
@@ -2558,7 +2558,7 @@ function createConvaiWidget(container, options) {
2558
2558
  if (!convaiClient.apiKey || !convaiClient.characterId)
2559
2559
  return;
2560
2560
  try {
2561
- const response = await fetch("https://api.convai.com/character/get", {
2561
+ const response = await fetch("https://api-stg.convai.com/character/get", {
2562
2562
  method: "POST",
2563
2563
  headers: {
2564
2564
  "Content-Type": "application/json",
@@ -3762,7 +3762,9 @@ function createConvaiWidget(container, options) {
3762
3762
  chatContent.style.transform = "scale(1)";
3763
3763
  chatContent.style.pointerEvents = "auto";
3764
3764
  // Auto-enter voice mode if defaultVoiceMode is true and not already entered
3765
- if (defaultVoiceMode && !hasEnteredDefaultVoiceMode && convaiClient.state.isConnected) {
3765
+ if (defaultVoiceMode &&
3766
+ !hasEnteredDefaultVoiceMode &&
3767
+ convaiClient.state.isConnected) {
3766
3768
  setTimeout(async () => {
3767
3769
  try {
3768
3770
  await convaiClient.audioControls.unmuteAudio();
@@ -2517,7 +2517,7 @@ const Icons = {
2517
2517
  * ```
2518
2518
  */
2519
2519
  function createConvaiWidget(container, options) {
2520
- const { convaiClient, showVideo = true, showScreenShare = true, defaultVoiceMode = true } = options;
2520
+ const { convaiClient, showVideo = true, showScreenShare = true, defaultVoiceMode = true, } = options;
2521
2521
  // Inject global styles
2522
2522
  injectGlobalStyles();
2523
2523
  // State
@@ -2556,7 +2556,7 @@ function createConvaiWidget(container, options) {
2556
2556
  if (!convaiClient.apiKey || !convaiClient.characterId)
2557
2557
  return;
2558
2558
  try {
2559
- const response = await fetch("https://api.convai.com/character/get", {
2559
+ const response = await fetch("https://api-stg.convai.com/character/get", {
2560
2560
  method: "POST",
2561
2561
  headers: {
2562
2562
  "Content-Type": "application/json",
@@ -3760,7 +3760,9 @@ function createConvaiWidget(container, options) {
3760
3760
  chatContent.style.transform = "scale(1)";
3761
3761
  chatContent.style.pointerEvents = "auto";
3762
3762
  // Auto-enter voice mode if defaultVoiceMode is true and not already entered
3763
- if (defaultVoiceMode && !hasEnteredDefaultVoiceMode && convaiClient.state.isConnected) {
3763
+ if (defaultVoiceMode &&
3764
+ !hasEnteredDefaultVoiceMode &&
3765
+ convaiClient.state.isConnected) {
3764
3766
  setTimeout(async () => {
3765
3767
  try {
3766
3768
  await convaiClient.audioControls.unmuteAudio();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@convai/web-sdk",
3
- "version": "0.3.1-beta.2",
3
+ "version": "0.3.1-beta.3",
4
4
  "description": "Convai Web SDK for AI voice assistants. Framework-agnostic with vanilla JavaScript/TypeScript support. Build voice-powered AI interactions with real-time audio/video streaming.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  "scripts": {
39
39
  "build": "npm run build:esm && npm run build:types",
40
40
  "build:esm": "rollup -c",
41
- "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
41
+ "build:types": "tsc --project tsconfig.types.json",
42
42
  "build:prod": "NODE_ENV=production npm run build",
43
43
  "dev": "rollup -c --watch",
44
44
  "clean": "rimraf dist",
@@ -1,12 +0,0 @@
1
- /**
2
- * Development-only exports
3
- *
4
- * This module contains tools and utilities for development and debugging.
5
- * Import from '@convai/web-sdk/dev' to access these features.
6
- *
7
- * @packageDocumentation
8
- * @module dev
9
- */
10
- export { LatencyMonitor } from "./utils/LatencyMonitor";
11
- export type { LatencyMeasurement, LatencyStats } from "./utils/LatencyMonitor";
12
- //# sourceMappingURL=dev.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/dev.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './react';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAC"}
@@ -1,68 +0,0 @@
1
- import type { IConvaiClient } from "../../core/types";
2
- interface ConvaiWidgetProps {
3
- /** Convai client instance (required) */
4
- convaiClient: IConvaiClient & {
5
- activity?: string;
6
- isAudioMuted: boolean;
7
- isVideoEnabled: boolean;
8
- isScreenShareActive: boolean;
9
- };
10
- /**
11
- * Show video toggle button in settings (default: true).
12
- * Only works if connection type is "video". If false, hides the video button.
13
- */
14
- showVideo?: boolean;
15
- /**
16
- * Show screen share toggle button in settings (default: true).
17
- * Only works if connection type is "video". If false, hides the screen share button.
18
- */
19
- showScreenShare?: boolean;
20
- /**
21
- * Start in voice mode by default when widget opens (default: true).
22
- * When true, the widget will open directly in voice mode with microphone enabled.
23
- */
24
- defaultVoiceMode?: boolean;
25
- }
26
- /**
27
- * ConvaiWidget - A consolidated chat widget component for real-time conversations
28
- *
29
- * This component provides a complete UI for interacting with Convai characters.
30
- * Connection configuration should be handled via useConvaiClient.connect().
31
- *
32
- * Features:
33
- * - Collapsed circular button with status indicator
34
- * - Expandable/collapsible chat interface
35
- * - Voice mode support
36
- * - Real-time message streaming
37
- * - Audio controls (mute/unmute)
38
- * - Settings tray with session reset
39
- * - Optional video and screen share (when connection type supports it)
40
- *
41
- * @param {ConvaiWidgetProps} props - Component props
42
- * @param {ConvaiClient} props.convaiClient - Convai client instance (required)
43
- * @param {boolean} props.showVideo - Show video toggle in settings (default: true)
44
- * @param {boolean} props.showScreenShare - Show screen share toggle in settings (default: true)
45
- * @param {boolean} props.defaultVoiceMode - Start in voice mode when widget opens (default: true)
46
- *
47
- * @example
48
- * ```tsx
49
- * function App() {
50
- * const convaiClient = useConvaiClient({
51
- * apiKey: 'your-api-key',
52
- * characterId: 'your-character-id',
53
- * enableVideo: true,
54
- * });
55
- *
56
- * return (
57
- * <ConvaiWidget
58
- * convaiClient={convaiClient}
59
- * showVideo={true}
60
- * showScreenShare={true}
61
- * />
62
- * );
63
- * }
64
- * ```
65
- */
66
- export declare const ConvaiWidget: React.FC<ConvaiWidgetProps>;
67
- export {};
68
- //# sourceMappingURL=ConvaiWidget.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConvaiWidget.d.ts","sourceRoot":"","sources":["../../../../src/react/components/ConvaiWidget.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAyCtD,UAAU,iBAAiB;IACzB,wCAAwC;IACxC,YAAY,EAAE,aAAa,GAAG;QAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,OAAO,CAAC;QACtB,cAAc,EAAE,OAAO,CAAC;QACxB,mBAAmB,EAAE,OAAO,CAAC;KAC9B,CAAC;IACF;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAytBpD,CAAC"}
@@ -1,2 +0,0 @@
1
- export { ConvaiWidget } from './ConvaiWidget';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import { AudioSettings } from "../../../../core/types";
3
- interface AudioSettingsPanelProps {
4
- currentSettings: AudioSettings;
5
- onUpdateSettings: (settings: Partial<AudioSettings>) => Promise<void>;
6
- isConnected: boolean;
7
- }
8
- export declare const AudioSettingsPanel: React.FC<AudioSettingsPanelProps>;
9
- export {};
10
- //# sourceMappingURL=AudioSettingsPanel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AudioSettingsPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/AudioSettingsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,UAAU,uBAAuB;IAC/B,eAAe,EAAE,aAAa,CAAC;IAC/B,gBAAgB,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,WAAW,EAAE,OAAO,CAAC;CACtB;AA8PD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAiOhE,CAAC"}
@@ -1,36 +0,0 @@
1
- import { Room } from 'livekit-client';
2
- interface AudioVisualizerProps {
3
- /** LiveKit room instance containing the remote participant's audio track */
4
- room: Room | null;
5
- /** Canvas size in pixels (width and height) */
6
- size?: number;
7
- /** CSS color value for the bars */
8
- color?: string;
9
- /** Base opacity of the bars (0-1), actual opacity varies with audio intensity */
10
- opacity?: number;
11
- /** Radius of the circular visualization area in pixels */
12
- avatarRadius?: number;
13
- /** Number of radial bars to display around the circle */
14
- barCount?: number;
15
- /** Callback function called when speaking state changes */
16
- onSpeakingChange?: (isSpeaking: boolean) => void;
17
- }
18
- /**
19
- * Circular Audio Visualizer Component
20
- *
21
- * A real-time circular audio visualization component that displays radial bars arranged
22
- * in a circle around an avatar. The visualization reacts to the remote participant's
23
- * (bot) audio output from a LiveKit room, using logarithmic frequency bands and a
24
- * traveling wave animation effect.
25
- *
26
- * Features:
27
- * - Circular radial bar visualization with configurable bar count
28
- * - Logarithmic frequency band distribution (low frequencies distributed around the ring)
29
- * - Traveling wave animation that propagates around the circle
30
- * - Speaking detection with callback support
31
- * - Automatic track detection and reconnection
32
- * - Canvas-based rendering for smooth animations
33
- */
34
- export declare const AudioVisualizer: React.FC<AudioVisualizerProps>;
35
- export {};
36
- //# sourceMappingURL=AudioVisualizer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AudioVisualizer.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/AudioVisualizer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAkBtC,UAAU,oBAAoB;IAC5B,4EAA4E;IAC5E,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CAClD;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA4R1D,CAAC"}
@@ -1,10 +0,0 @@
1
- interface ConviMessageProps {
2
- message: string;
3
- timestamp?: string;
4
- className?: string;
5
- showLogo?: boolean;
6
- sender?: string;
7
- }
8
- export declare const ConviMessage: ({ message, timestamp, className, showLogo, sender, }: ConviMessageProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};
10
- //# sourceMappingURL=ConviMessage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConviMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/ConviMessage.tsx"],"names":[],"mappings":"AAYA,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,GAAI,sDAM1B,iBAAiB,4CAkCnB,CAAC"}
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- interface FloatingVideoProps {
3
- isVisible: boolean;
4
- onClose: () => void;
5
- mirror?: boolean;
6
- }
7
- export declare const FloatingVideo: React.FC<FloatingVideoProps>;
8
- export {};
9
- //# sourceMappingURL=FloatingVideo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FloatingVideo.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/FloatingVideo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAShD,UAAU,kBAAkB;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AA4DD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+ItD,CAAC"}
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- interface MarkdownRendererProps {
3
- text: string;
4
- }
5
- export declare const MarkdownRenderer: React.FC<MarkdownRendererProps>;
6
- export {};
7
- //# sourceMappingURL=MarkdownRenderer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/MarkdownRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,qBAAqB;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAmG5D,CAAC"}
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- interface MessageBubbleProps {
3
- children: React.ReactNode;
4
- isUser?: boolean;
5
- timestamp?: string;
6
- className?: string;
7
- }
8
- export declare const MessageBubble: ({ children, isUser, timestamp, className, }: MessageBubbleProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};
10
- //# sourceMappingURL=MessageBubble.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageBubble.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/MessageBubble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAoBD,eAAO,MAAM,aAAa,GAAI,6CAK3B,kBAAkB,4CAepB,CAAC"}
@@ -1,11 +0,0 @@
1
- import { RTCChatMessage } from "../types";
2
- type Message = RTCChatMessage;
3
- interface MessageListProps {
4
- messages: Message[];
5
- className?: string;
6
- isStreaming?: boolean;
7
- forceToBottomToken?: string | number | boolean;
8
- }
9
- export declare const MessageList: ({ messages, className, isStreaming, forceToBottomToken, }: MessageListProps) => import("react/jsx-runtime").JSX.Element;
10
- export {};
11
- //# sourceMappingURL=MessageList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/MessageList.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,KAAK,OAAO,GAAG,cAAc,CAAC;AAE9B,UAAU,gBAAgB;IACxB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAChD;AAED,eAAO,MAAM,WAAW,GAAI,2DAKzB,gBAAgB,4CAsHlB,CAAC"}
@@ -1,9 +0,0 @@
1
- interface UserMessageProps {
2
- message: string;
3
- timestamp?: string;
4
- className?: string;
5
- sender?: string;
6
- }
7
- export declare const UserMessage: ({ message, timestamp, className, sender, }: UserMessageProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
9
- //# sourceMappingURL=UserMessage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/UserMessage.tsx"],"names":[],"mappings":"AAaA,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,GAAI,4CAKzB,gBAAgB,4CA6BlB,CAAC"}
@@ -1,6 +0,0 @@
1
- interface ConviButtonProps {
2
- isOpen: boolean;
3
- }
4
- export declare const ConviButton: ({ isOpen }: ConviButtonProps) => import("react/jsx-runtime").JSX.Element;
5
- export {};
6
- //# sourceMappingURL=ConviButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConviButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/components/rtc-widget/components/conviComponents/ConviButton.tsx"],"names":[],"mappings":"AAMA,UAAU,gBAAgB;IACxB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,GAAI,YAAY,gBAAgB,4CAyBvD,CAAC"}
@@ -1,25 +0,0 @@
1
- import React from "react";
2
- interface ConviFooterProps {
3
- inputMode: "conversation" | "speaker" | "voice" | "verbosity";
4
- inputValue: string;
5
- liveUserText: string;
6
- chatbotMic: boolean;
7
- localIsTyping: boolean;
8
- convaiIsTyping: boolean;
9
- isCreatingSpeaker: boolean;
10
- isPressingMic: boolean;
11
- isSettingsOpen: boolean;
12
- isVoiceMode: boolean;
13
- onInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
14
- onKeyPress: (e: React.KeyboardEvent) => void;
15
- onSend: () => void;
16
- onMicPress: () => void;
17
- onMicRelease: () => void;
18
- setIsPressingMic: (value: boolean) => void;
19
- onToggleVoiceMode: () => void;
20
- verbosityChanged?: boolean;
21
- onContinue?: () => void;
22
- }
23
- export declare const ConviFooter: ({ inputMode, inputValue, liveUserText, chatbotMic, localIsTyping, convaiIsTyping, isCreatingSpeaker, isPressingMic, isSettingsOpen, isVoiceMode, onInputChange, onKeyPress, onSend, onMicPress, onMicRelease, setIsPressingMic, onToggleVoiceMode, verbosityChanged, onContinue, }: ConviFooterProps) => import("react/jsx-runtime").JSX.Element;
24
- export {};
25
- //# sourceMappingURL=ConviFooter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConviFooter.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/components/rtc-widget/components/conviComponents/ConviFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,UAAU,gBAAgB;IACxB,SAAS,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAChE,UAAU,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;IAC7C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,WAAW,GAAI,oRAoBzB,gBAAgB,4CA2RlB,CAAC"}
@@ -1,17 +0,0 @@
1
- import React from "react";
2
- interface ConviHeaderProps {
3
- isOpen: boolean;
4
- isSpeakerEditMode: boolean;
5
- isVoiceMode: boolean;
6
- isVerbosityMode: boolean;
7
- isMuted: boolean;
8
- characterImage?: string;
9
- characterName?: string;
10
- onClose: () => void;
11
- onSettingsToggle: () => void;
12
- onToggleMute: () => void;
13
- settingsButtonRef: React.RefObject<HTMLButtonElement>;
14
- }
15
- export declare const ConviHeader: ({ isOpen, isSpeakerEditMode, isVoiceMode, isVerbosityMode, isMuted, characterImage, characterName, onClose, onSettingsToggle, onToggleMute, settingsButtonRef, }: ConviHeaderProps) => import("react/jsx-runtime").JSX.Element;
16
- export {};
17
- //# sourceMappingURL=ConviHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConviHeader.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/components/rtc-widget/components/conviComponents/ConviHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,UAAU,gBAAgB;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;CACvD;AAED,eAAO,MAAM,WAAW,GAAI,kKAYzB,gBAAgB,4CAwIlB,CAAC"}
@@ -1,12 +0,0 @@
1
- interface SettingsTrayProps {
2
- isOpen: boolean;
3
- isVideoVisible?: boolean;
4
- isScreenShareActive?: boolean;
5
- onReset: () => void;
6
- onDisconnect?: () => void;
7
- onToggleVideo?: () => void;
8
- onToggleScreenShare?: () => void;
9
- }
10
- export declare const SettingsTray: ({ isOpen, isVideoVisible, isScreenShareActive, onReset, onDisconnect, onToggleVideo, onToggleScreenShare, }: SettingsTrayProps) => import("react/jsx-runtime").JSX.Element | null;
11
- export {};
12
- //# sourceMappingURL=SettingsTray.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SettingsTray.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/components/rtc-widget/components/conviComponents/SettingsTray.tsx"],"names":[],"mappings":"AAYA,UAAU,iBAAiB;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,eAAO,MAAM,YAAY,GAAI,6GAQ1B,iBAAiB,mDAyInB,CAAC"}
@@ -1,12 +0,0 @@
1
- import { Room } from "livekit-client";
2
- interface VoiceModeOverlayProps {
3
- isActive: boolean;
4
- isTalking: boolean;
5
- convaiClient?: any;
6
- characterImage?: string;
7
- characterName?: string;
8
- room?: Room | null;
9
- }
10
- export declare const VoiceModeOverlay: ({ isActive, isTalking, convaiClient, characterImage, characterName, room, }: VoiceModeOverlayProps) => import("react/jsx-runtime").JSX.Element;
11
- export {};
12
- //# sourceMappingURL=VoiceModeOverlay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VoiceModeOverlay.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,GAAI,6EAO9B,qBAAqB,4CA8YvB,CAAC"}
@@ -1,6 +0,0 @@
1
- export { ConviButton } from "./ConviButton";
2
- export { ConviHeader } from "./ConviHeader";
3
- export { ConviFooter } from "./ConviFooter";
4
- export { SettingsTray } from "./SettingsTray";
5
- export { VoiceModeOverlay } from "./VoiceModeOverlay";
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/components/rtc-widget/components/conviComponents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,9 +0,0 @@
1
- export { MessageBubble } from "./MessageBubble";
2
- export { MessageList } from "./MessageList";
3
- export { UserMessage } from "./UserMessage";
4
- export { ConviMessage } from "./ConviMessage";
5
- export { MarkdownRenderer } from "./MarkdownRenderer";
6
- export { FloatingVideo } from "./FloatingVideo";
7
- export { AudioVisualizer } from "./AudioVisualizer";
8
- export { ConviButton, ConviHeader, ConviFooter, SettingsTray, VoiceModeOverlay, } from "./conviComponents";
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMpD,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACZ,gBAAgB,GACjB,MAAM,mBAAmB,CAAC"}
@@ -1,6 +0,0 @@
1
- export { MessageBubble, MessageList, UserMessage, ConviMessage, FloatingVideo, ConviButton, ConviHeader, ConviFooter, SettingsTray, VoiceModeOverlay, } from "./components";
2
- export { aeroTheme, glassStyles, iconSizes, variants, iosTransitions, animationVariants, ConvaiLogo, ChevronDown, } from "./styles";
3
- export { ConvaiContainer, MorphingContainer, ButtonContent, Logo, ChatContent, Header, Title, HeaderLogo, CloseButton, SettingsButton, Content, Footer, InputContainer, Input, ActionButton, } from "./styles";
4
- export type { RTCChatMessage, CharacterVerbosityConfig, ConviUIProps, } from "./types";
5
- export type { LogoState } from "./styles";
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/react/components/rtc-widget/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAY,EACZ,aAAa,EAEb,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACZ,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,WAAW,GACZ,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,IAAI,EACJ,WAAW,EACX,MAAM,EACN,KAAK,EACL,UAAU,EACV,WAAW,EACX,cAAc,EACd,OAAO,EACP,MAAM,EACN,cAAc,EACd,KAAK,EACL,YAAY,GACb,MAAM,UAAU,CAAC;AAGlB,YAAY,EACV,cAAc,EACd,wBAAwB,EACxB,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC"}
@@ -1,116 +0,0 @@
1
- export declare const iosTransitions: {
2
- snappy: {
3
- type: "spring";
4
- stiffness: number;
5
- damping: number;
6
- };
7
- fadePop: {
8
- type: "spring";
9
- stiffness: number;
10
- damping: number;
11
- };
12
- layoutMorph: {
13
- type: "spring";
14
- stiffness: number;
15
- damping: number;
16
- };
17
- modalSlide: {
18
- type: "spring";
19
- stiffness: number;
20
- damping: number;
21
- };
22
- scale: {
23
- type: "spring";
24
- stiffness: number;
25
- damping: number;
26
- };
27
- slide: {
28
- type: "spring";
29
- stiffness: number;
30
- damping: number;
31
- };
32
- };
33
- export declare const animationVariants: {
34
- fadeIn: {
35
- initial: {
36
- opacity: number;
37
- };
38
- animate: {
39
- opacity: number;
40
- };
41
- exit: {
42
- opacity: number;
43
- };
44
- };
45
- slideUp: {
46
- initial: {
47
- y: number;
48
- opacity: number;
49
- };
50
- animate: {
51
- y: number;
52
- opacity: number;
53
- };
54
- exit: {
55
- y: number;
56
- opacity: number;
57
- };
58
- };
59
- slideDown: {
60
- initial: {
61
- y: number;
62
- opacity: number;
63
- };
64
- animate: {
65
- y: number;
66
- opacity: number;
67
- };
68
- exit: {
69
- y: number;
70
- opacity: number;
71
- };
72
- };
73
- scaleIn: {
74
- initial: {
75
- scale: number;
76
- opacity: number;
77
- };
78
- animate: {
79
- scale: number;
80
- opacity: number;
81
- };
82
- exit: {
83
- scale: number;
84
- opacity: number;
85
- };
86
- };
87
- slideInFromRight: {
88
- initial: {
89
- x: string;
90
- opacity: number;
91
- };
92
- animate: {
93
- x: number;
94
- opacity: number;
95
- };
96
- exit: {
97
- x: string;
98
- opacity: number;
99
- };
100
- };
101
- slideInFromLeft: {
102
- initial: {
103
- x: string;
104
- opacity: number;
105
- };
106
- animate: {
107
- x: number;
108
- opacity: number;
109
- };
110
- exit: {
111
- x: string;
112
- opacity: number;
113
- };
114
- };
115
- };
116
- //# sourceMappingURL=framerConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"framerConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/styles/framerConfig.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0C1B,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC7B,CAAC"}
@@ -1,28 +0,0 @@
1
- import { iconSizes } from "./theme";
2
- export type LogoState = "idle" | "connecting" | "connected" | "disconnected" | "typing" | "listening" | "processing";
3
- export declare const AeroIcons: {
4
- ChevronDown: ({ size, color, }: {
5
- size?: keyof typeof iconSizes;
6
- color?: string;
7
- }) => import("react/jsx-runtime").JSX.Element;
8
- ConvaiLogo: ({ size, color, animate, state, }: {
9
- size?: keyof typeof iconSizes;
10
- color?: string;
11
- animate?: boolean;
12
- state?: LogoState;
13
- }) => import("react/jsx-runtime").JSX.Element;
14
- };
15
- export declare const IconButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
16
- $size?: keyof typeof iconSizes;
17
- $variant?: "ghost" | "glass";
18
- }>> & string;
19
- export declare const ChevronDown: ({ size, color, }: {
20
- size?: keyof typeof iconSizes;
21
- color?: string;
22
- }) => import("react/jsx-runtime").JSX.Element, ConvaiLogo: ({ size, color, animate, state, }: {
23
- size?: keyof typeof iconSizes;
24
- color?: string;
25
- animate?: boolean;
26
- state?: LogoState;
27
- }) => import("react/jsx-runtime").JSX.Element;
28
- //# sourceMappingURL=icons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/styles/icons.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAa,SAAS,EAAE,MAAM,SAAS,CAAC;AAG/C,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,YAAY,GACZ,WAAW,GACX,cAAc,GACd,QAAQ,GACR,WAAW,GACX,YAAY,CAAC;AAmLjB,eAAO,MAAM,SAAS;oCAKjB;QACD,IAAI,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;QAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;mDAqBE;QACD,IAAI,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;QAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,KAAK,CAAC,EAAE,SAAS,CAAC;KACnB;CAqGF,CAAC;AAGF,eAAO,MAAM,UAAU;YACb,MAAM,OAAO,SAAS;eACnB,OAAO,GAAG,OAAO;YAmC7B,CAAC;AAGF,eAAO,MAAQ,WAAW,qBA7KrB;IACD,IAAI,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,8CA0KyB,UAAU,qCArJjC;IACD,IAAI,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,4CAgJiD,CAAC"}