@convai/web-sdk 0.3.1-beta.2 → 0.3.2-beta.0

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 (287) hide show
  1. package/README.md +535 -1077
  2. package/dist/core/AudioManager.d.ts.map +1 -0
  3. package/dist/core/AudioManager.js +262 -0
  4. package/dist/core/AudioManager.js.map +1 -0
  5. package/dist/core/BlendshapeQueue.d.ts +128 -0
  6. package/dist/core/BlendshapeQueue.d.ts.map +1 -0
  7. package/dist/core/BlendshapeQueue.js +229 -0
  8. package/dist/core/BlendshapeQueue.js.map +1 -0
  9. package/dist/{types/core → core}/ConvaiClient.d.ts +19 -15
  10. package/dist/core/ConvaiClient.d.ts.map +1 -0
  11. package/dist/core/ConvaiClient.js +623 -0
  12. package/dist/core/ConvaiClient.js.map +1 -0
  13. package/dist/core/EventEmitter.d.ts.map +1 -0
  14. package/dist/core/EventEmitter.js +68 -0
  15. package/dist/core/EventEmitter.js.map +1 -0
  16. package/dist/{types/core → core}/MessageHandler.d.ts +7 -0
  17. package/dist/core/MessageHandler.d.ts.map +1 -0
  18. package/dist/core/MessageHandler.js +333 -0
  19. package/dist/core/MessageHandler.js.map +1 -0
  20. package/dist/core/ScreenShareManager.d.ts.map +1 -0
  21. package/dist/core/ScreenShareManager.js +207 -0
  22. package/dist/core/ScreenShareManager.js.map +1 -0
  23. package/dist/core/VideoManager.d.ts.map +1 -0
  24. package/dist/core/VideoManager.js +205 -0
  25. package/dist/core/VideoManager.js.map +1 -0
  26. package/dist/{types/core → core}/index.d.ts +2 -0
  27. package/dist/core/index.d.ts.map +1 -0
  28. package/dist/core/index.js +14 -1970
  29. package/dist/core/index.js.map +1 -0
  30. package/dist/{types/core → core}/types.d.ts +12 -21
  31. package/dist/core/types.d.ts.map +1 -0
  32. package/dist/core/types.js +2 -0
  33. package/dist/core/types.js.map +1 -0
  34. package/dist/dev.d.ts.map +1 -0
  35. package/dist/dev.js +12 -0
  36. package/dist/dev.js.map +1 -0
  37. package/dist/index.d.ts +4 -0
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/index.js +6 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/lipsync-helpers/arkitBlendshapeHelpers.d.ts.map +1 -0
  42. package/dist/lipsync-helpers/arkitBlendshapeHelpers.js +201 -0
  43. package/dist/lipsync-helpers/arkitBlendshapeHelpers.js.map +1 -0
  44. package/dist/lipsync-helpers/arkitOrder61.d.ts.map +1 -0
  45. package/dist/lipsync-helpers/arkitOrder61.js +287 -0
  46. package/dist/lipsync-helpers/arkitOrder61.js.map +1 -0
  47. package/dist/lipsync-helpers/arkitPhonemeReference.d.ts.map +1 -0
  48. package/dist/lipsync-helpers/arkitPhonemeReference.js +362 -0
  49. package/dist/lipsync-helpers/arkitPhonemeReference.js.map +1 -0
  50. package/dist/{types/lipsync-helpers → lipsync-helpers}/index.d.ts +1 -0
  51. package/dist/lipsync-helpers/index.d.ts.map +1 -0
  52. package/dist/lipsync-helpers/index.js +20 -1165
  53. package/dist/lipsync-helpers/index.js.map +1 -0
  54. package/dist/lipsync-helpers/metahumanOrder251.d.ts +115 -0
  55. package/dist/lipsync-helpers/metahumanOrder251.d.ts.map +1 -0
  56. package/dist/lipsync-helpers/metahumanOrder251.js +432 -0
  57. package/dist/lipsync-helpers/metahumanOrder251.js.map +1 -0
  58. package/dist/lipsync-helpers/neurosyncBlendshapeMapper.d.ts.map +1 -0
  59. package/dist/lipsync-helpers/neurosyncBlendshapeMapper.js +315 -0
  60. package/dist/lipsync-helpers/neurosyncBlendshapeMapper.js.map +1 -0
  61. package/dist/react/components/ConvaiWidget.d.ts.map +1 -0
  62. package/dist/react/components/ConvaiWidget.js +505 -0
  63. package/dist/react/components/ConvaiWidget.js.map +1 -0
  64. package/dist/react/components/index.d.ts.map +1 -0
  65. package/dist/react/components/index.js +3 -0
  66. package/dist/react/components/index.js.map +1 -0
  67. package/dist/react/components/rtc-widget/components/AudioSettingsPanel.d.ts.map +1 -0
  68. package/dist/react/components/rtc-widget/components/AudioSettingsPanel.js +316 -0
  69. package/dist/react/components/rtc-widget/components/AudioSettingsPanel.js.map +1 -0
  70. package/dist/react/components/rtc-widget/components/AudioVisualizer.d.ts.map +1 -0
  71. package/dist/react/components/rtc-widget/components/AudioVisualizer.js +259 -0
  72. package/dist/react/components/rtc-widget/components/AudioVisualizer.js.map +1 -0
  73. package/dist/react/components/rtc-widget/components/ConviMessage.d.ts.map +1 -0
  74. package/dist/react/components/rtc-widget/components/ConviMessage.js +14 -0
  75. package/dist/react/components/rtc-widget/components/ConviMessage.js.map +1 -0
  76. package/dist/react/components/rtc-widget/components/FloatingVideo.d.ts.map +1 -0
  77. package/dist/react/components/rtc-widget/components/FloatingVideo.js +122 -0
  78. package/dist/react/components/rtc-widget/components/FloatingVideo.js.map +1 -0
  79. package/dist/react/components/rtc-widget/components/MarkdownRenderer.d.ts.map +1 -0
  80. package/dist/react/components/rtc-widget/components/MarkdownRenderer.js +68 -0
  81. package/dist/react/components/rtc-widget/components/MarkdownRenderer.js.map +1 -0
  82. package/dist/react/components/rtc-widget/components/MessageBubble.d.ts.map +1 -0
  83. package/dist/react/components/rtc-widget/components/MessageBubble.js +23 -0
  84. package/dist/react/components/rtc-widget/components/MessageBubble.js.map +1 -0
  85. package/dist/react/components/rtc-widget/components/MessageList.d.ts.map +1 -0
  86. package/dist/react/components/rtc-widget/components/MessageList.js +89 -0
  87. package/dist/react/components/rtc-widget/components/MessageList.js.map +1 -0
  88. package/dist/react/components/rtc-widget/components/UserMessage.d.ts.map +1 -0
  89. package/dist/react/components/rtc-widget/components/UserMessage.js +15 -0
  90. package/dist/react/components/rtc-widget/components/UserMessage.js.map +1 -0
  91. package/dist/react/components/rtc-widget/components/conviComponents/ConviButton.d.ts.map +1 -0
  92. package/dist/react/components/rtc-widget/components/conviComponents/ConviButton.js +15 -0
  93. package/dist/react/components/rtc-widget/components/conviComponents/ConviButton.js.map +1 -0
  94. package/dist/react/components/rtc-widget/components/conviComponents/ConviFooter.d.ts.map +1 -0
  95. package/dist/react/components/rtc-widget/components/conviComponents/ConviFooter.js +172 -0
  96. package/dist/react/components/rtc-widget/components/conviComponents/ConviFooter.js.map +1 -0
  97. package/dist/react/components/rtc-widget/components/conviComponents/ConviHeader.d.ts.map +1 -0
  98. package/dist/react/components/rtc-widget/components/conviComponents/ConviHeader.js +66 -0
  99. package/dist/react/components/rtc-widget/components/conviComponents/ConviHeader.js.map +1 -0
  100. package/dist/react/components/rtc-widget/components/conviComponents/SettingsTray.d.ts.map +1 -0
  101. package/dist/react/components/rtc-widget/components/conviComponents/SettingsTray.js +68 -0
  102. package/dist/react/components/rtc-widget/components/conviComponents/SettingsTray.js.map +1 -0
  103. package/dist/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.d.ts.map +1 -0
  104. package/dist/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.js +255 -0
  105. package/dist/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.js.map +1 -0
  106. package/dist/react/components/rtc-widget/components/conviComponents/index.d.ts.map +1 -0
  107. package/dist/react/components/rtc-widget/components/conviComponents/index.js +6 -0
  108. package/dist/react/components/rtc-widget/components/conviComponents/index.js.map +1 -0
  109. package/dist/react/components/rtc-widget/components/index.d.ts.map +1 -0
  110. package/dist/react/components/rtc-widget/components/index.js +15 -0
  111. package/dist/react/components/rtc-widget/components/index.js.map +1 -0
  112. package/dist/react/components/rtc-widget/index.d.ts.map +1 -0
  113. package/dist/react/components/rtc-widget/index.js +9 -0
  114. package/dist/react/components/rtc-widget/index.js.map +1 -0
  115. package/dist/react/components/rtc-widget/styles/framerConfig.d.ts.map +1 -0
  116. package/dist/react/components/rtc-widget/styles/framerConfig.js +73 -0
  117. package/dist/react/components/rtc-widget/styles/framerConfig.js.map +1 -0
  118. package/dist/react/components/rtc-widget/styles/icons.d.ts.map +1 -0
  119. package/dist/react/components/rtc-widget/styles/icons.js +257 -0
  120. package/dist/react/components/rtc-widget/styles/icons.js.map +1 -0
  121. package/dist/react/components/rtc-widget/styles/index.d.ts.map +1 -0
  122. package/dist/react/components/rtc-widget/styles/index.js +9 -0
  123. package/dist/react/components/rtc-widget/styles/index.js.map +1 -0
  124. package/dist/react/components/rtc-widget/styles/styledComponents.d.ts.map +1 -0
  125. package/dist/react/components/rtc-widget/styles/styledComponents.js +663 -0
  126. package/dist/react/components/rtc-widget/styles/styledComponents.js.map +1 -0
  127. package/dist/react/components/rtc-widget/styles/theme.d.ts.map +1 -0
  128. package/dist/react/components/rtc-widget/styles/theme.js +290 -0
  129. package/dist/react/components/rtc-widget/styles/theme.js.map +1 -0
  130. package/dist/react/components/rtc-widget/types/index.d.ts.map +1 -0
  131. package/dist/react/components/rtc-widget/types/index.js +2 -0
  132. package/dist/react/components/rtc-widget/types/index.js.map +1 -0
  133. package/dist/react/hooks/index.d.ts.map +1 -0
  134. package/dist/react/hooks/index.js +6 -0
  135. package/dist/react/hooks/index.js.map +1 -0
  136. package/dist/react/hooks/useCharacterInfo.d.ts.map +1 -0
  137. package/dist/react/hooks/useCharacterInfo.js +60 -0
  138. package/dist/react/hooks/useCharacterInfo.js.map +1 -0
  139. package/dist/react/hooks/useConvaiClient.d.ts +35 -0
  140. package/dist/react/hooks/useConvaiClient.d.ts.map +1 -0
  141. package/dist/react/hooks/useConvaiClient.js +183 -0
  142. package/dist/react/hooks/useConvaiClient.js.map +1 -0
  143. package/dist/react/hooks/useLocalCameraTrack.d.ts.map +1 -0
  144. package/dist/react/hooks/useLocalCameraTrack.js +34 -0
  145. package/dist/react/hooks/useLocalCameraTrack.js.map +1 -0
  146. package/dist/{types/react → react}/index.d.ts +0 -2
  147. package/dist/react/index.d.ts.map +1 -0
  148. package/dist/react/index.js +13 -0
  149. package/dist/react/index.js.map +1 -0
  150. package/dist/types/index.d.ts +260 -1
  151. package/dist/types/index.d.ts.map +1 -1
  152. package/dist/types/index.js +2 -0
  153. package/dist/types/index.js.map +1 -0
  154. package/dist/utils/LatencyMonitor.d.ts.map +1 -0
  155. package/dist/utils/LatencyMonitor.js +136 -0
  156. package/dist/utils/LatencyMonitor.js.map +1 -0
  157. package/dist/utils/logger.d.ts.map +1 -0
  158. package/dist/utils/logger.js +96 -0
  159. package/dist/utils/logger.js.map +1 -0
  160. package/dist/utils/speakerManagement.d.ts.map +1 -0
  161. package/dist/utils/speakerManagement.js +64 -0
  162. package/dist/utils/speakerManagement.js.map +1 -0
  163. package/dist/{types/vanilla → vanilla}/AudioRenderer.d.ts +5 -0
  164. package/dist/vanilla/AudioRenderer.d.ts.map +1 -0
  165. package/dist/vanilla/AudioRenderer.js +135 -0
  166. package/dist/vanilla/AudioRenderer.js.map +1 -0
  167. package/dist/vanilla/ConvaiWidget.d.ts.map +1 -0
  168. package/dist/vanilla/ConvaiWidget.js +1786 -0
  169. package/dist/vanilla/ConvaiWidget.js.map +1 -0
  170. package/dist/vanilla/icons.d.ts.map +1 -0
  171. package/dist/vanilla/icons.js +222 -0
  172. package/dist/vanilla/icons.js.map +1 -0
  173. package/dist/{types/vanilla → vanilla}/index.d.ts +1 -3
  174. package/dist/vanilla/index.d.ts.map +1 -0
  175. package/dist/vanilla/index.js +20 -5507
  176. package/dist/vanilla/index.js.map +1 -0
  177. package/dist/vanilla/styles.d.ts.map +1 -0
  178. package/dist/vanilla/styles.js +287 -0
  179. package/dist/vanilla/styles.js.map +1 -0
  180. package/dist/vanilla/types.d.ts +43 -0
  181. package/dist/vanilla/types.d.ts.map +1 -0
  182. package/dist/vanilla/types.js +2 -0
  183. package/dist/vanilla/types.js.map +1 -0
  184. package/package.json +33 -38
  185. package/CHANGELOG.md +0 -165
  186. package/dist/core/index.cjs +0 -1977
  187. package/dist/lipsync-helpers/index.cjs +0 -1195
  188. package/dist/types/core/AudioManager.d.ts.map +0 -1
  189. package/dist/types/core/ConvaiClient.d.ts.map +0 -1
  190. package/dist/types/core/EventEmitter.d.ts.map +0 -1
  191. package/dist/types/core/MessageHandler.d.ts.map +0 -1
  192. package/dist/types/core/ScreenShareManager.d.ts.map +0 -1
  193. package/dist/types/core/VideoManager.d.ts.map +0 -1
  194. package/dist/types/core/index.d.ts.map +0 -1
  195. package/dist/types/core/types.d.ts.map +0 -1
  196. package/dist/types/dev.d.ts.map +0 -1
  197. package/dist/types/lipsync-helpers/arkitBlendshapeHelpers.d.ts.map +0 -1
  198. package/dist/types/lipsync-helpers/arkitOrder61.d.ts.map +0 -1
  199. package/dist/types/lipsync-helpers/arkitPhonemeReference.d.ts.map +0 -1
  200. package/dist/types/lipsync-helpers/index.d.ts.map +0 -1
  201. package/dist/types/lipsync-helpers/neurosyncBlendshapeMapper.d.ts.map +0 -1
  202. package/dist/types/react/components/ConvaiWidget.d.ts.map +0 -1
  203. package/dist/types/react/components/index.d.ts.map +0 -1
  204. package/dist/types/react/components/rtc-widget/components/AudioSettingsPanel.d.ts.map +0 -1
  205. package/dist/types/react/components/rtc-widget/components/AudioVisualizer.d.ts.map +0 -1
  206. package/dist/types/react/components/rtc-widget/components/ConviMessage.d.ts.map +0 -1
  207. package/dist/types/react/components/rtc-widget/components/FloatingVideo.d.ts.map +0 -1
  208. package/dist/types/react/components/rtc-widget/components/MarkdownRenderer.d.ts.map +0 -1
  209. package/dist/types/react/components/rtc-widget/components/MessageBubble.d.ts.map +0 -1
  210. package/dist/types/react/components/rtc-widget/components/MessageList.d.ts.map +0 -1
  211. package/dist/types/react/components/rtc-widget/components/UserMessage.d.ts.map +0 -1
  212. package/dist/types/react/components/rtc-widget/components/conviComponents/ConviButton.d.ts.map +0 -1
  213. package/dist/types/react/components/rtc-widget/components/conviComponents/ConviFooter.d.ts.map +0 -1
  214. package/dist/types/react/components/rtc-widget/components/conviComponents/ConviHeader.d.ts.map +0 -1
  215. package/dist/types/react/components/rtc-widget/components/conviComponents/SettingsTray.d.ts.map +0 -1
  216. package/dist/types/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.d.ts.map +0 -1
  217. package/dist/types/react/components/rtc-widget/components/conviComponents/index.d.ts.map +0 -1
  218. package/dist/types/react/components/rtc-widget/components/index.d.ts.map +0 -1
  219. package/dist/types/react/components/rtc-widget/index.d.ts.map +0 -1
  220. package/dist/types/react/components/rtc-widget/styles/framerConfig.d.ts.map +0 -1
  221. package/dist/types/react/components/rtc-widget/styles/icons.d.ts.map +0 -1
  222. package/dist/types/react/components/rtc-widget/styles/index.d.ts.map +0 -1
  223. package/dist/types/react/components/rtc-widget/styles/styledComponents.d.ts.map +0 -1
  224. package/dist/types/react/components/rtc-widget/styles/theme.d.ts.map +0 -1
  225. package/dist/types/react/components/rtc-widget/types/index.d.ts.map +0 -1
  226. package/dist/types/react/hooks/index.d.ts.map +0 -1
  227. package/dist/types/react/hooks/useCharacterInfo.d.ts.map +0 -1
  228. package/dist/types/react/hooks/useConvaiClient.d.ts +0 -141
  229. package/dist/types/react/hooks/useConvaiClient.d.ts.map +0 -1
  230. package/dist/types/react/hooks/useLocalCameraTrack.d.ts.map +0 -1
  231. package/dist/types/react/index.d.ts.map +0 -1
  232. package/dist/types/types/index.d.ts +0 -261
  233. package/dist/types/types/index.d.ts.map +0 -1
  234. package/dist/types/utils/LatencyMonitor.d.ts.map +0 -1
  235. package/dist/types/utils/logger.d.ts.map +0 -1
  236. package/dist/types/utils/speakerManagement.d.ts.map +0 -1
  237. package/dist/types/vanilla/AudioRenderer.d.ts.map +0 -1
  238. package/dist/types/vanilla/ConvaiWidget.d.ts.map +0 -1
  239. package/dist/types/vanilla/icons.d.ts.map +0 -1
  240. package/dist/types/vanilla/index.d.ts.map +0 -1
  241. package/dist/types/vanilla/styles.d.ts.map +0 -1
  242. package/dist/types/vanilla/types.d.ts +0 -106
  243. package/dist/types/vanilla/types.d.ts.map +0 -1
  244. package/dist/umd/convai.umd.js +0 -1
  245. package/dist/vanilla/index.cjs +0 -5557
  246. /package/dist/{types/core → core}/AudioManager.d.ts +0 -0
  247. /package/dist/{types/core → core}/EventEmitter.d.ts +0 -0
  248. /package/dist/{types/core → core}/ScreenShareManager.d.ts +0 -0
  249. /package/dist/{types/core → core}/VideoManager.d.ts +0 -0
  250. /package/dist/{types/dev.d.ts → dev.d.ts} +0 -0
  251. /package/dist/{types/lipsync-helpers → lipsync-helpers}/arkitBlendshapeHelpers.d.ts +0 -0
  252. /package/dist/{types/lipsync-helpers → lipsync-helpers}/arkitOrder61.d.ts +0 -0
  253. /package/dist/{types/lipsync-helpers → lipsync-helpers}/arkitPhonemeReference.d.ts +0 -0
  254. /package/dist/{types/lipsync-helpers → lipsync-helpers}/neurosyncBlendshapeMapper.d.ts +0 -0
  255. /package/dist/{types/react → react}/components/ConvaiWidget.d.ts +0 -0
  256. /package/dist/{types/react → react}/components/index.d.ts +0 -0
  257. /package/dist/{types/react → react}/components/rtc-widget/components/AudioSettingsPanel.d.ts +0 -0
  258. /package/dist/{types/react → react}/components/rtc-widget/components/AudioVisualizer.d.ts +0 -0
  259. /package/dist/{types/react → react}/components/rtc-widget/components/ConviMessage.d.ts +0 -0
  260. /package/dist/{types/react → react}/components/rtc-widget/components/FloatingVideo.d.ts +0 -0
  261. /package/dist/{types/react → react}/components/rtc-widget/components/MarkdownRenderer.d.ts +0 -0
  262. /package/dist/{types/react → react}/components/rtc-widget/components/MessageBubble.d.ts +0 -0
  263. /package/dist/{types/react → react}/components/rtc-widget/components/MessageList.d.ts +0 -0
  264. /package/dist/{types/react → react}/components/rtc-widget/components/UserMessage.d.ts +0 -0
  265. /package/dist/{types/react → react}/components/rtc-widget/components/conviComponents/ConviButton.d.ts +0 -0
  266. /package/dist/{types/react → react}/components/rtc-widget/components/conviComponents/ConviFooter.d.ts +0 -0
  267. /package/dist/{types/react → react}/components/rtc-widget/components/conviComponents/ConviHeader.d.ts +0 -0
  268. /package/dist/{types/react → react}/components/rtc-widget/components/conviComponents/SettingsTray.d.ts +0 -0
  269. /package/dist/{types/react → react}/components/rtc-widget/components/conviComponents/VoiceModeOverlay.d.ts +0 -0
  270. /package/dist/{types/react → react}/components/rtc-widget/components/conviComponents/index.d.ts +0 -0
  271. /package/dist/{types/react → react}/components/rtc-widget/components/index.d.ts +0 -0
  272. /package/dist/{types/react → react}/components/rtc-widget/index.d.ts +0 -0
  273. /package/dist/{types/react → react}/components/rtc-widget/styles/framerConfig.d.ts +0 -0
  274. /package/dist/{types/react → react}/components/rtc-widget/styles/icons.d.ts +0 -0
  275. /package/dist/{types/react → react}/components/rtc-widget/styles/index.d.ts +0 -0
  276. /package/dist/{types/react → react}/components/rtc-widget/styles/styledComponents.d.ts +0 -0
  277. /package/dist/{types/react → react}/components/rtc-widget/styles/theme.d.ts +0 -0
  278. /package/dist/{types/react → react}/components/rtc-widget/types/index.d.ts +0 -0
  279. /package/dist/{types/react → react}/hooks/index.d.ts +0 -0
  280. /package/dist/{types/react → react}/hooks/useCharacterInfo.d.ts +0 -0
  281. /package/dist/{types/react → react}/hooks/useLocalCameraTrack.d.ts +0 -0
  282. /package/dist/{types/utils → utils}/LatencyMonitor.d.ts +0 -0
  283. /package/dist/{types/utils → utils}/logger.d.ts +0 -0
  284. /package/dist/{types/utils → utils}/speakerManagement.d.ts +0 -0
  285. /package/dist/{types/vanilla → vanilla}/ConvaiWidget.d.ts +0 -0
  286. /package/dist/{types/vanilla → vanilla}/icons.d.ts +0 -0
  287. /package/dist/{types/vanilla → vanilla}/styles.d.ts +0 -0
@@ -0,0 +1,66 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { motion } from "framer-motion";
3
+ import { FiMoreVertical } from "react-icons/fi";
4
+ import { IoVolumeMute, IoVolumeHigh } from "react-icons/io5";
5
+ import { ChevronDown } from "../../styles/icons";
6
+ import { aeroTheme } from "../../styles/theme";
7
+ import { iosTransitions } from "../../styles/framerConfig";
8
+ import { Header, Title, CloseButton, SettingsButton, } from "../../styles/styledComponents";
9
+ export const ConviHeader = ({ isOpen, isSpeakerEditMode, isVoiceMode, isVerbosityMode, isMuted, characterImage, characterName = "Character", onClose, onSettingsToggle, onToggleMute, settingsButtonRef, }) => {
10
+ return (_jsxs(Header, { initial: { opacity: 0, y: -20 }, animate: {
11
+ opacity: isOpen ? 1 : 0,
12
+ y: isOpen ? 0 : -20,
13
+ }, transition: {
14
+ delay: isOpen ? 0.4 : 0,
15
+ ...iosTransitions.modalSlide,
16
+ }, children: [_jsx(CloseButton, { onClick: onClose, whileHover: { scale: 1.1 }, whileTap: { scale: 0.9 }, transition: iosTransitions.snappy, style: { cursor: "pointer" }, children: _jsx(ChevronDown, { size: "md" }) }), _jsxs(Title, { children: [characterImage && !isVoiceMode && (_jsx(motion.img, { layoutId: "character-avatar", src: characterImage, alt: characterName, transition: iosTransitions.fadePop, style: {
17
+ width: "1.5rem",
18
+ height: "1.5rem",
19
+ borderRadius: "50%",
20
+ objectFit: "cover",
21
+ marginRight: "0.5rem",
22
+ } })), characterName, _jsx(motion.button, { onClick: onToggleMute, whileHover: { scale: 1.1 }, whileTap: { scale: 0.9 }, transition: iosTransitions.snappy, style: {
23
+ cursor: "pointer",
24
+ pointerEvents: "auto",
25
+ background: "transparent",
26
+ border: "none",
27
+ boxShadow: "none",
28
+ width: "auto",
29
+ height: "auto",
30
+ padding: "0",
31
+ display: "inline-flex",
32
+ alignItems: "center",
33
+ marginLeft: "0.5rem",
34
+ outline: "none",
35
+ }, "aria-label": isMuted ? "Unmute" : "Mute", title: isMuted ? "Unmute" : "Mute", children: isMuted ? (_jsx(IoVolumeMute, { size: 16, color: "#919EABA6" })) : (_jsx(IoVolumeHigh, { size: 16, color: "#0E7360" })) }), isSpeakerEditMode && (_jsx("span", { style: {
36
+ fontSize: "10px",
37
+ color: aeroTheme.colors.convai.light,
38
+ fontWeight: 500,
39
+ marginLeft: "8px",
40
+ padding: "2px 6px",
41
+ borderRadius: "4px",
42
+ backgroundColor: aeroTheme.colors.convai.light + "20",
43
+ }, children: "EDIT" })), isVoiceMode && (_jsx("span", { style: {
44
+ fontSize: "10px",
45
+ color: aeroTheme.colors.convai.light,
46
+ fontWeight: 500,
47
+ marginLeft: "8px",
48
+ padding: "2px 6px",
49
+ borderRadius: "4px",
50
+ backgroundColor: aeroTheme.colors.convai.light + "20",
51
+ }, children: "VOICE" })), isVerbosityMode && (_jsx("span", { style: {
52
+ fontSize: "10px",
53
+ color: aeroTheme.colors.convai.light,
54
+ fontWeight: 500,
55
+ marginLeft: "8px",
56
+ padding: "2px 6px",
57
+ borderRadius: "4px",
58
+ backgroundColor: aeroTheme.colors.convai.light + "20",
59
+ }, children: "VERBOSITY" }))] }), _jsx("div", { style: {
60
+ display: "flex",
61
+ alignItems: "center",
62
+ gap: "0.5rem",
63
+ position: "relative",
64
+ }, children: _jsx(SettingsButton, { ref: settingsButtonRef, onClick: onSettingsToggle, whileHover: { scale: 1.1 }, whileTap: { scale: 0.9 }, transition: iosTransitions.snappy, style: { cursor: "pointer" }, children: _jsx(FiMoreVertical, { size: 20 }) }) })] }));
65
+ };
66
+ //# sourceMappingURL=ConviHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConviHeader.js","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/conviComponents/ConviHeader.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EACL,MAAM,EACN,KAAK,EACL,WAAW,EACX,cAAc,GACf,MAAM,+BAA+B,CAAC;AAgBvC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC1B,MAAM,EACN,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,OAAO,EACP,cAAc,EACd,aAAa,GAAG,WAAW,EAC3B,OAAO,EACP,gBAAgB,E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E,SAAS;4BAClB,YAAY,EAAE,KAAK;4BACnB,eAAe,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI;yBACtD,sBAGI,CACR,EACA,eAAe,IAAI,CAClB,eACE,KAAK,EAAE;4BACL,QAAQ,EAAE,MAAM;4BAChB,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK;4BACpC,UAAU,EAAE,GAAG;4BACf,UAAU,EAAE,KAAK;4BACjB,OAAO,EAAE,SAAS;4BAClB,YAAY,EAAE,KAAK;4BACnB,eAAe,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI;yBACtD,0BAGI,CACR,IACK,EAER,cACE,KAAK,EAAE;oBACL,OAAO,EAAE,MAAM;oBACf,UAAU,EAAE,QAAQ;oBACpB,GAAG,EAAE,QAAQ;oBACb,QAAQ,EAAE,UAAU;iBACrB,YAED,KAAC,cAAc,IACb,GAAG,EAAE,iBAAiB,EACtB,OAAO,EAAE,gBAAgB,EACzB,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EAC1B,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EACxB,UAAU,EAAE,cAAc,CAAC,MAAM,EACjC,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,YAE5B,KAAC,cAAc,IAAC,IAAI,EAAE,EAAE,GAAI,GACb,GACb,IACC,CACV,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,68 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { AnimatePresence } from "framer-motion";
3
+ import { LiaRedoAltSolid } from "react-icons/lia";
4
+ import { IoVideocam, IoVideocamOff } from "react-icons/io5";
5
+ import { MdScreenShare, MdStopScreenShare } from "react-icons/md";
6
+ import { aeroTheme } from "../../styles/theme";
7
+ import { iosTransitions } from "../../styles/framerConfig";
8
+ import { SettingsTray as StyledSettingsTray, SettingsOption, } from "../../styles/styledComponents";
9
+ export const SettingsTray = ({ isOpen, isVideoVisible, isScreenShareActive, onReset, onDisconnect, onToggleVideo, onToggleScreenShare, }) => {
10
+ if (!isOpen)
11
+ return null;
12
+ return (_jsx(AnimatePresence, { children: _jsx(StyledSettingsTray, { "data-settings-tray": true, initial: { opacity: 0, y: -10, scale: 0.95 }, animate: { opacity: 1, y: 0, scale: 1 }, exit: { opacity: 0, y: -10, scale: 0.95 }, transition: iosTransitions.fadePop, style: {
13
+ position: "absolute",
14
+ top: "60px",
15
+ right: "16px",
16
+ zIndex: 9999,
17
+ }, onClick: (e) => e.stopPropagation(), children: _jsxs("div", { style: {
18
+ display: "flex",
19
+ flexDirection: "row",
20
+ alignItems: "center",
21
+ padding: "8px",
22
+ gap: "4px",
23
+ }, children: [_jsxs(SettingsOption, { onClick: onReset, whileHover: { scale: 1.02 }, whileTap: { scale: 0.98 }, transition: iosTransitions.snappy, style: {
24
+ cursor: "pointer",
25
+ flexDirection: "column",
26
+ gap: "4px",
27
+ padding: "8px 12px",
28
+ }, "aria-label": "Reset", title: "Reset", children: [_jsx(LiaRedoAltSolid, { size: 18 }), _jsx("span", { style: { fontSize: "10px", fontWeight: 500 }, children: "Reset" })] }), onToggleVideo && (_jsxs(SettingsOption, { onClick: (e) => {
29
+ e.stopPropagation();
30
+ onToggleVideo();
31
+ }, whileHover: { scale: 1.02 }, whileTap: { scale: 0.98 }, transition: iosTransitions.snappy, style: {
32
+ cursor: "pointer",
33
+ flexDirection: "column",
34
+ gap: "4px",
35
+ padding: "8px 12px",
36
+ backgroundColor: isVideoVisible
37
+ ? "rgba(16, 185, 129, 0.15)"
38
+ : "transparent",
39
+ color: isVideoVisible
40
+ ? "#10b981"
41
+ : aeroTheme.colors.text.primary,
42
+ }, "aria-label": isVideoVisible ? "Hide Video" : "Show Video", title: isVideoVisible ? "Hide Video" : "Show Video", children: [isVideoVisible ? _jsx(IoVideocam, { size: 18 }) : _jsx(IoVideocamOff, { size: 18 }), _jsx("span", { style: { fontSize: "10px", fontWeight: 500 }, children: "Video" })] })), onToggleScreenShare && (_jsxs(SettingsOption, { onClick: (e) => {
43
+ e.stopPropagation();
44
+ onToggleScreenShare();
45
+ }, whileHover: { scale: 1.02 }, whileTap: { scale: 0.98 }, transition: iosTransitions.snappy, style: {
46
+ cursor: "pointer",
47
+ flexDirection: "column",
48
+ gap: "4px",
49
+ padding: "8px 12px",
50
+ backgroundColor: isScreenShareActive
51
+ ? "rgba(16, 185, 129, 0.15)"
52
+ : "transparent",
53
+ color: isScreenShareActive
54
+ ? "#10b981"
55
+ : aeroTheme.colors.text.primary,
56
+ }, "aria-label": isScreenShareActive ? "Stop Sharing" : "Share Screen", title: isScreenShareActive ? "Stop Sharing" : "Share Screen", children: [isScreenShareActive ? _jsx(MdStopScreenShare, { size: 18 }) : _jsx(MdScreenShare, { size: 18 }), _jsx("span", { style: { fontSize: "10px", fontWeight: 500 }, children: "Screen" })] })), onDisconnect && (_jsxs(SettingsOption, { onClick: (e) => {
57
+ e.stopPropagation();
58
+ onDisconnect();
59
+ }, whileHover: { scale: 1.02 }, whileTap: { scale: 0.98 }, transition: iosTransitions.snappy, style: {
60
+ cursor: "pointer",
61
+ flexDirection: "column",
62
+ gap: "4px",
63
+ padding: "8px 12px",
64
+ backgroundColor: "rgba(239, 68, 68, 0.1)",
65
+ color: "#ef4444",
66
+ }, "aria-label": "Disconnect", title: "Disconnect", children: [_jsx("span", { style: { fontSize: "18px" }, children: "\u23FB" }), _jsx("span", { style: { fontSize: "10px", fontWeight: 500 }, children: "Disconnect" })] }))] }) }) }));
67
+ };
68
+ //# sourceMappingURL=SettingsTray.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsTray.js","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/conviComponents/SettingsTray.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EACL,YAAY,IAAI,kBAAkB,EAClC,cAAc,GACf,MAAM,+BAA+B,CAAC;AAYvC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,MAAM,EACN,cAAc,EACd,mBAAmB,EACnB,OAAO,EACP,YAAY,EACZ,aAAa,EACb,mBAAmB,GACD,EAAE,EAAE;IACtB,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IAEzB,OAAO,CACL,KAAC,eAAe,cACd,KAAC,kBAAkB,gCAEjB,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAC5C,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EA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.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"}
@@ -0,0 +1,255 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useRef, useState } from "react";
3
+ import { motion, AnimatePresence } from "framer-motion";
4
+ import { aeroTheme } from "../../styles/theme";
5
+ import { iosTransitions } from "../../styles/framerConfig";
6
+ import { AudioVisualizer } from "../AudioVisualizer";
7
+ export const VoiceModeOverlay = ({ isActive, isTalking, convaiClient, characterImage, characterName = "Character", room, }) => {
8
+ const barsCount = 40; // Number of bars for user microphone waveform
9
+ const [audioLevels, setAudioLevels] = useState(Array(barsCount).fill(0));
10
+ const analyzerRef = useRef(null);
11
+ const animationFrameRef = useRef(undefined);
12
+ const audioContextRef = useRef(null);
13
+ // Setup audio analysis for USER microphone input ONLY
14
+ useEffect(() => {
15
+ if (!isActive) {
16
+ // Clean up when user is not speaking
17
+ if (animationFrameRef.current) {
18
+ cancelAnimationFrame(animationFrameRef.current);
19
+ }
20
+ setAudioLevels(Array(barsCount).fill(0));
21
+ return;
22
+ }
23
+ let stream = null;
24
+ const setupAudioAnalysis = async () => {
25
+ try {
26
+ // Get microphone stream
27
+ stream = await navigator.mediaDevices.getUserMedia({ audio: true });
28
+ // Create audio context and analyzer
29
+ const audioContext = new (window.AudioContext ||
30
+ window.webkitAudioContext)();
31
+ audioContextRef.current = audioContext;
32
+ const analyzer = audioContext.createAnalyser();
33
+ analyzer.fftSize = 256; // Better resolution for time domain
34
+ analyzer.smoothingTimeConstant = 0.7;
35
+ analyzerRef.current = analyzer;
36
+ const source = audioContext.createMediaStreamSource(stream);
37
+ source.connect(analyzer);
38
+ const dataArray = new Uint8Array(analyzer.fftSize);
39
+ const updateLevels = () => {
40
+ if (!analyzerRef.current)
41
+ return;
42
+ // Use time domain data (waveform) instead of frequency
43
+ analyzer.getByteTimeDomainData(dataArray);
44
+ // Calculate RMS (Root Mean Square) for volume
45
+ let sum = 0;
46
+ for (let i = 0; i < dataArray.length; i++) {
47
+ const normalized = (dataArray[i] - 128) / 128; // Center around 0
48
+ sum += normalized * normalized;
49
+ }
50
+ const rms = Math.sqrt(sum / dataArray.length);
51
+ // Apply some scaling and clamping
52
+ const volume = Math.min(1, rms * 3); // Boost sensitivity
53
+ // Create left-to-right wave effect
54
+ const levels = Array(barsCount)
55
+ .fill(0)
56
+ .map((_, i) => {
57
+ // Progressive wave from left to right
58
+ const position = i / barsCount; // 0 to 1 from left to right
59
+ const wavePhase = Date.now() / 300 + position * Math.PI * 2;
60
+ const waveVariation = Math.sin(wavePhase) * 0.15 + 0.85; // 0.7 to 1.0
61
+ return volume * waveVariation;
62
+ });
63
+ setAudioLevels(levels);
64
+ animationFrameRef.current = requestAnimationFrame(updateLevels);
65
+ };
66
+ updateLevels();
67
+ }
68
+ catch (error) {
69
+ console.error("Error setting up audio analysis:", error);
70
+ }
71
+ };
72
+ setupAudioAnalysis();
73
+ return () => {
74
+ if (animationFrameRef.current) {
75
+ cancelAnimationFrame(animationFrameRef.current);
76
+ }
77
+ if (stream) {
78
+ stream.getTracks().forEach((track) => track.stop());
79
+ }
80
+ if (audioContextRef.current) {
81
+ audioContextRef.current.close();
82
+ }
83
+ };
84
+ }, [isActive, barsCount]);
85
+ const [isBotSpeaking, setIsBotSpeaking] = useState(false);
86
+ return (_jsxs("div", { style: {
87
+ position: "absolute",
88
+ top: "50%",
89
+ left: "50%",
90
+ transform: "translate(-50%, -50%)",
91
+ textAlign: "center",
92
+ padding: "1rem",
93
+ zIndex: 10,
94
+ pointerEvents: "none",
95
+ display: "flex",
96
+ flexDirection: "column",
97
+ alignItems: "center",
98
+ gap: "2rem",
99
+ }, children: [_jsxs("div", { style: {
100
+ position: "relative",
101
+ display: "flex",
102
+ alignItems: "center",
103
+ justifyContent: "center",
104
+ isolation: "isolate", // Create stacking context
105
+ }, children: [room && (_jsx(motion.div, { initial: { opacity: 0, scale: 0.8 }, animate: {
106
+ opacity: isBotSpeaking ? 1 : 0,
107
+ scale: isBotSpeaking ? 1 : 0.8,
108
+ }, transition: iosTransitions.fadePop, style: {
109
+ position: "absolute",
110
+ width: "220px",
111
+ height: "220px",
112
+ zIndex: -1, // Negative z-index to ensure it's behind
113
+ pointerEvents: "none",
114
+ }, children: _jsx(AudioVisualizer, { room: room, size: 220, color: aeroTheme.colors.convai.light, opacity: 0.6, avatarRadius: 110, barCount: 48, onSpeakingChange: setIsBotSpeaking }) })), _jsxs(motion.div, { initial: { scale: 0.8, opacity: 0 }, animate: { scale: 1, opacity: 1 }, exit: { scale: 0.8, opacity: 0 }, transition: iosTransitions.fadePop, style: {
115
+ position: "relative",
116
+ zIndex: 10, // Higher z-index to be clearly on top
117
+ borderRadius: "50%",
118
+ overflow: "visible", // Changed to visible to show glow
119
+ boxShadow: "0 8px 32px rgba(0, 0, 0, 0.3)",
120
+ background: "white",
121
+ }, children: [_jsx(motion.div, { animate: {
122
+ rotate: [0, 360],
123
+ scale: isBotSpeaking ? [1, 1.05, 1.02, 1.05, 1] : 1,
124
+ }, transition: {
125
+ rotate: { duration: 20, repeat: Infinity, ease: "linear" },
126
+ scale: { duration: 3, repeat: Infinity, ease: "easeInOut" },
127
+ }, style: {
128
+ position: "absolute",
129
+ width: "126px",
130
+ height: "126px",
131
+ borderRadius: "50%",
132
+ background: `
133
+ conic-gradient(
134
+ from 0deg,
135
+ ${aeroTheme.colors.convai.light}00 0%,
136
+ ${aeroTheme.colors.convai.light}40 25%,
137
+ ${aeroTheme.colors.convai.dark}60 50%,
138
+ ${aeroTheme.colors.convai.light}40 75%,
139
+ ${aeroTheme.colors.convai.light}00 100%
140
+ )
141
+ `,
142
+ opacity: 0.8,
143
+ filter: "blur(8px)",
144
+ zIndex: -2,
145
+ } }), _jsx(motion.div, { animate: {
146
+ rotate: [360, 0],
147
+ scale: isBotSpeaking ? [1, 1.03, 1.06, 1.03, 1] : 1,
148
+ }, transition: {
149
+ rotate: { duration: 15, repeat: Infinity, ease: "linear" },
150
+ scale: { duration: 2.5, repeat: Infinity, ease: "easeInOut" },
151
+ }, style: {
152
+ position: "absolute",
153
+ width: "126px",
154
+ height: "126px",
155
+ borderRadius: "50%",
156
+ background: `
157
+ radial-gradient(
158
+ ellipse 80% 100% at 30% 40%,
159
+ ${aeroTheme.colors.convai.light}50,
160
+ ${aeroTheme.colors.convai.light}30 40%,
161
+ transparent 70%
162
+ ),
163
+ radial-gradient(
164
+ ellipse 80% 100% at 70% 60%,
165
+ ${aeroTheme.colors.convai.dark}50,
166
+ ${aeroTheme.colors.convai.dark}30 40%,
167
+ transparent 70%
168
+ )
169
+ `,
170
+ opacity: 0.9,
171
+ filter: "blur(6px)",
172
+ zIndex: -1,
173
+ } }), _jsx("div", { style: {
174
+ position: "relative",
175
+ borderRadius: "50%",
176
+ overflow: "hidden",
177
+ border: `3px solid rgba(255, 255, 255, 0.2)`,
178
+ }, children: characterImage ? (_jsx(motion.img, { src: characterImage, alt: characterName, animate: {
179
+ scale: isBotSpeaking ? 1.05 : 1,
180
+ }, transition: {
181
+ duration: 0.3,
182
+ ease: "easeInOut",
183
+ }, style: {
184
+ width: "120px",
185
+ height: "120px",
186
+ objectFit: "cover",
187
+ display: "block",
188
+ } })) : (_jsx("div", { style: {
189
+ width: "120px",
190
+ height: "120px",
191
+ backgroundColor: aeroTheme.colors.convai.light + "20",
192
+ display: "flex",
193
+ alignItems: "center",
194
+ justifyContent: "center",
195
+ fontSize: "48px",
196
+ color: aeroTheme.colors.convai.light,
197
+ fontWeight: 600,
198
+ }, children: characterName[0]?.toUpperCase() || "C" })) })] }, "center-avatar" // Use key instead of layoutId for independent animation
199
+ )] }), _jsx(AnimatePresence, { children: isActive && (_jsx(motion.div, { initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: -20 }, transition: iosTransitions.fadePop, style: {
200
+ width: "250px",
201
+ height: "80px",
202
+ position: "relative",
203
+ }, children: _jsx("svg", { width: "250", height: "80", style: {
204
+ overflow: "visible",
205
+ }, children: [0, 1, 2].map((waveIndex) => {
206
+ // Calculate wave path based on audio levels
207
+ const points = [];
208
+ const centerY = 40;
209
+ const waveWidth = 250;
210
+ const segments = barsCount;
211
+ // Calculate average audio level for glow intensity
212
+ const avgLevel = audioLevels.reduce((sum, level) => sum + level, 0) / audioLevels.length;
213
+ const glowIntensity = avgLevel * 35; // 0-35px glow (increased from 20)
214
+ // Green color variants for each wave
215
+ const waveColors = [
216
+ aeroTheme.colors.convai.light, // Bright green - front wave
217
+ aeroTheme.colors.convai.light, // Medium green - mid wave
218
+ "#34d399", // Medium-light green - back wave (lighter than dark)
219
+ ];
220
+ for (let i = 0; i <= segments; i++) {
221
+ const x = (i / segments) * waveWidth;
222
+ const levelIndex = Math.floor((i / segments) * (audioLevels.length - 1));
223
+ const level = audioLevels[levelIndex] || 0;
224
+ // When idle (low audio), show straight line
225
+ // When active, create waves with increased amplitude
226
+ const phase = (Date.now() / 500 + i * 0.2 + waveIndex * 1.5) % (Math.PI * 2);
227
+ // Only add wave motion when there's audio
228
+ // Idle: amplitude ~0 (straight line)
229
+ // Active: amplitude up to 25px (increased from 15)
230
+ const baseAmplitude = avgLevel > 0.05 ? (2 + waveIndex * 1.5) : 0;
231
+ const amplitude = baseAmplitude + level * (25 - baseAmplitude);
232
+ const y = centerY + Math.sin(phase) * amplitude;
233
+ points.push(`${x},${y}`);
234
+ }
235
+ return (_jsx(motion.path, { d: `M ${points.join(" L ")}`, fill: "none", stroke: waveColors[waveIndex], strokeWidth: 2.5 - waveIndex * 0.4, strokeLinecap: "round", strokeLinejoin: "round", opacity: 0.95 - waveIndex * 0.15, animate: {
236
+ filter: `drop-shadow(0 0 ${glowIntensity}px ${waveColors[waveIndex]}) blur(${waveIndex * 0.3}px)`,
237
+ }, transition: {
238
+ duration: 0.1,
239
+ ease: "easeOut",
240
+ } }, waveIndex));
241
+ }) }) })) }), _jsxs(motion.div, { initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, transition: { delay: 0.2, ...iosTransitions.fadePop }, children: [_jsx("div", { style: {
242
+ fontSize: "16px",
243
+ fontWeight: 600,
244
+ color: aeroTheme.colors.text.primary,
245
+ marginBottom: "0.5rem",
246
+ }, children: isTalking
247
+ ? `${characterName} Speaking...`
248
+ : isActive
249
+ ? "Listening..."
250
+ : "Voice Mode" }), _jsx("div", { style: {
251
+ fontSize: "13px",
252
+ color: aeroTheme.colors.text.secondary,
253
+ }, children: isActive || isTalking ? "Audio active" : "Tap microphone to talk" })] })] }));
254
+ };
255
+ //# sourceMappingURL=VoiceModeOverlay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoiceModeOverlay.js","sourceRoot":"","sources":["../../../../../../src/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAYrD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC/B,QAAQ,EACR,SA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GAAG,IACT,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAC9B,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAC7B,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,cAAc,CAAC,OAAO,EAAE,aAErD,cACE,KAAK,EAAE;4BACL,QAAQ,EAAE,MAAM;4BAChB,UAAU,EAAE,GAAG;4BACf,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO;4BACpC,YAAY,EAAE,QAAQ;yBACvB,YAEA,SAAS;4BACR,CAAC,CAAC,GAAG,aAAa,cAAc;4BAChC,CAAC,CAAC,QAAQ;gCACR,CAAC,CAAC,cAAc;gCAChB,CAAC,CAAC,YAAY,GACd,EACN,cACE,KAAK,EAAE;4BACL,QAAQ,EAAE,MAAM;4BAChB,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS;yBACvC,YAEA,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,wBAAwB,GAC9D,IACK,IACT,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
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.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","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"}
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,15 @@
1
+ // Export message components
2
+ export { MessageBubble } from "./MessageBubble";
3
+ export { MessageList } from "./MessageList";
4
+ export { UserMessage } from "./UserMessage";
5
+ export { ConviMessage } from "./ConviMessage";
6
+ export { MarkdownRenderer } from "./MarkdownRenderer";
7
+ // Export floating video component
8
+ export { FloatingVideo } from "./FloatingVideo";
9
+ // Export audio visualizer
10
+ export { AudioVisualizer } from "./AudioVisualizer";
11
+ // Note: AudioSettingsPanel is internal only - audio settings are fixed
12
+ // export { AudioSettingsPanel } from "./AudioSettingsPanel";
13
+ // Export convi sub-components
14
+ export { ConviButton, ConviHeader, ConviFooter, SettingsTray, VoiceModeOverlay, } from "./conviComponents";
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/react/components/rtc-widget/components/index.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,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;AAEtD,kCAAkC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,0BAA0B;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,uEAAuE;AACvE,6DAA6D;AAE7D,8BAA8B;AAC9B,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACZ,gBAAgB,GACjB,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,9 @@
1
+ // Export all components
2
+ export { MessageBubble, MessageList, UserMessage, ConviMessage, FloatingVideo,
3
+ // AudioSettingsPanel, // Internal only - audio settings are fixed
4
+ ConviButton, ConviHeader, ConviFooter, SettingsTray, VoiceModeOverlay, } from "./components";
5
+ // Export styles and theme
6
+ export { aeroTheme, glassStyles, iconSizes, variants, iosTransitions, animationVariants, ConvaiLogo, ChevronDown, } from "./styles";
7
+ // Export styled components for custom layouts
8
+ export { ConvaiContainer, MorphingContainer, ButtonContent, Logo, ChatContent, Header, Title, HeaderLogo, CloseButton, SettingsButton, Content, Footer, InputContainer, Input, ActionButton, } from "./styles";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/react/components/rtc-widget/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,OAAO,EACL,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAY,EACZ,aAAa;AACb,kEAAkE;AAClE,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACZ,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAEtB,0BAA0B;AAC1B,OAAO,EACL,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,WAAW,GACZ,MAAM,UAAU,CAAC;AAElB,8CAA8C;AAC9C,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"}
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,73 @@
1
+ // Framer Motion transition configurations for iOS-like animations
2
+ export const iosTransitions = {
3
+ // Fast and snappy transitions for buttons and small elements
4
+ snappy: {
5
+ type: "spring",
6
+ stiffness: 400,
7
+ damping: 30,
8
+ },
9
+ // Smooth fade with pop effect
10
+ fadePop: {
11
+ type: "spring",
12
+ stiffness: 300,
13
+ damping: 25,
14
+ },
15
+ // Layout morphing animations
16
+ layoutMorph: {
17
+ type: "spring",
18
+ stiffness: 200,
19
+ damping: 20,
20
+ },
21
+ // Modal slide from bottom
22
+ modalSlide: {
23
+ type: "spring",
24
+ stiffness: 260,
25
+ damping: 22,
26
+ },
27
+ // Smooth scale animation
28
+ scale: {
29
+ type: "spring",
30
+ stiffness: 350,
31
+ damping: 28,
32
+ },
33
+ // Slide animations
34
+ slide: {
35
+ type: "spring",
36
+ stiffness: 300,
37
+ damping: 30,
38
+ },
39
+ };
40
+ // Common animation variants
41
+ export const animationVariants = {
42
+ fadeIn: {
43
+ initial: { opacity: 0 },
44
+ animate: { opacity: 1 },
45
+ exit: { opacity: 0 },
46
+ },
47
+ slideUp: {
48
+ initial: { y: 20, opacity: 0 },
49
+ animate: { y: 0, opacity: 1 },
50
+ exit: { y: -20, opacity: 0 },
51
+ },
52
+ slideDown: {
53
+ initial: { y: -20, opacity: 0 },
54
+ animate: { y: 0, opacity: 1 },
55
+ exit: { y: 20, opacity: 0 },
56
+ },
57
+ scaleIn: {
58
+ initial: { scale: 0.8, opacity: 0 },
59
+ animate: { scale: 1, opacity: 1 },
60
+ exit: { scale: 0.8, opacity: 0 },
61
+ },
62
+ slideInFromRight: {
63
+ initial: { x: "100%", opacity: 0 },
64
+ animate: { x: 0, opacity: 1 },
65
+ exit: { x: "100%", opacity: 0 },
66
+ },
67
+ slideInFromLeft: {
68
+ initial: { x: "-100%", opacity: 0 },
69
+ animate: { x: 0, opacity: 1 },
70
+ exit: { x: "-100%", opacity: 0 },
71
+ },
72
+ };
73
+ //# sourceMappingURL=framerConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"framerConfig.js","sourceRoot":"","sources":["../../../../../src/react/components/rtc-widget/styles/framerConfig.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAElE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,6DAA6D;IAC7D,MAAM,EAAE;QACN,IAAI,EAAE,QAAiB;QACvB,SAAS,EAAE,GAAG;QACd,OAAO,EAAE,EAAE;KACZ;IAED,8BAA8B;IAC9B,OAAO,EAAE;QACP,IAAI,EAAE,QAAiB;QACvB,SAAS,EAAE,GAAG;QACd,OAAO,EAAE,EAAE;KACZ;IAED,6BAA6B;IAC7B,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,SAAS,EAAE,GAAG;QACd,OAAO,EAAE,EAAE;KACZ;IAED,0BAA0B;IAC1B,UAAU,EAAE;QACV,IAAI,EAAE,QAAiB;QACvB,SAAS,EAAE,GAAG;QACd,OAAO,EAAE,EAAE;KACZ;IAED,yBAAyB;IACzB,KAAK,EAAE;QACL,IAAI,EAAE,QAAiB;QACvB,SAAS,EAAE,GAAG;QACd,OAAO,EAAE,EAA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