@memori.ai/memori-react 9.0.0-alpha.1 → 9.0.0-alpha.10

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 (935) hide show
  1. package/CHANGELOG.md +374 -0
  2. package/dist/components/AgeVerificationModal/AgeVerificationModal.js +8 -3
  3. package/dist/components/AgeVerificationModal/AgeVerificationModal.js.map +1 -1
  4. package/dist/components/Auth/Auth.js +3 -1
  5. package/dist/components/Auth/Auth.js.map +1 -1
  6. package/dist/components/Avatar/Avatar.js +5 -10
  7. package/dist/components/Avatar/Avatar.js.map +1 -1
  8. package/dist/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.js +8 -1
  9. package/dist/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.js.map +1 -1
  10. package/dist/components/Avatar/AvatarView/AvatarComponent/components/controllers/MorphTargetController.js +1 -1
  11. package/dist/components/Avatar/AvatarView/AvatarComponent/components/controllers/MorphTargetController.js.map +1 -1
  12. package/dist/components/Avatar/AvatarView/AvatarComponent/constants.d.ts +2 -0
  13. package/dist/components/Avatar/AvatarView/AvatarComponent/constants.js +14 -5
  14. package/dist/components/Avatar/AvatarView/AvatarComponent/constants.js.map +1 -1
  15. package/dist/components/Chat/Chat.css +108 -20
  16. package/dist/components/Chat/Chat.d.ts +3 -0
  17. package/dist/components/Chat/Chat.js +63 -55
  18. package/dist/components/Chat/Chat.js.map +1 -1
  19. package/dist/components/ChatBubble/ChatBubble.css +42 -14
  20. package/dist/components/ChatBubble/ChatBubble.js +24 -16
  21. package/dist/components/ChatBubble/ChatBubble.js.map +1 -1
  22. package/dist/components/ChatHistoryDrawer/ChatHistory.css +4 -0
  23. package/dist/components/ChatHistoryDrawer/ChatHistory.js +27 -10
  24. package/dist/components/ChatHistoryDrawer/ChatHistory.js.map +1 -1
  25. package/dist/components/ChatInputs/ChatInputs.css +292 -108
  26. package/dist/components/ChatInputs/ChatInputs.d.ts +1 -0
  27. package/dist/components/ChatInputs/ChatInputs.js +2 -2
  28. package/dist/components/ChatInputs/ChatInputs.js.map +1 -1
  29. package/dist/components/ChatTextArea/ChatTextArea.css +30 -6
  30. package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js +6 -3
  31. package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
  32. package/dist/components/ContentPreviewModal/ContentPreviewModal.js +3 -1
  33. package/dist/components/ContentPreviewModal/ContentPreviewModal.js.map +1 -1
  34. package/dist/components/DateSelector/DateSelector.d.ts +2 -1
  35. package/dist/components/DateSelector/DateSelector.js +17 -7
  36. package/dist/components/DateSelector/DateSelector.js.map +1 -1
  37. package/dist/components/ExpertsDrawer/ExpertsDrawer.js +3 -1
  38. package/dist/components/ExpertsDrawer/ExpertsDrawer.js.map +1 -1
  39. package/dist/components/FilePreview/FilePreview.js +22 -5
  40. package/dist/components/FilePreview/FilePreview.js.map +1 -1
  41. package/dist/components/Header/ChatConsumptionDropdown.d.ts +3 -1
  42. package/dist/components/Header/ChatConsumptionDropdown.js +4 -3
  43. package/dist/components/Header/ChatConsumptionDropdown.js.map +1 -1
  44. package/dist/components/Header/Header.css +16 -10
  45. package/dist/components/Header/Header.js +103 -22
  46. package/dist/components/Header/Header.js.map +1 -1
  47. package/dist/components/KnownFacts/KnownFacts.js +7 -5
  48. package/dist/components/KnownFacts/KnownFacts.js.map +1 -1
  49. package/dist/components/LoginDrawer/LoginDrawer.css +1 -0
  50. package/dist/components/LoginDrawer/LoginDrawer.js +3 -1
  51. package/dist/components/LoginDrawer/LoginDrawer.js.map +1 -1
  52. package/dist/components/MediaWidget/MediaItemWidget.js +14 -12
  53. package/dist/components/MediaWidget/MediaItemWidget.js.map +1 -1
  54. package/dist/components/MediaWidget/MediaItemWidget.utils.d.ts +3 -2
  55. package/dist/components/MediaWidget/MediaItemWidget.utils.js +28 -6
  56. package/dist/components/MediaWidget/MediaItemWidget.utils.js.map +1 -1
  57. package/dist/components/MediaWidget/MediaPreviewModal.js +6 -7
  58. package/dist/components/MediaWidget/MediaPreviewModal.js.map +1 -1
  59. package/dist/components/MemoriArtifactSystem/components/ArtifactActions/styles.css +5 -4
  60. package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.css +108 -42
  61. package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.d.ts +1 -0
  62. package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.js +18 -10
  63. package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.js.map +1 -1
  64. package/dist/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.js +2 -2
  65. package/dist/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.js.map +1 -1
  66. package/dist/components/MemoriWidget/MemoriWidget.css +5 -5
  67. package/dist/components/MemoriWidget/MemoriWidget.d.ts +1 -0
  68. package/dist/components/MemoriWidget/MemoriWidget.js +788 -430
  69. package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
  70. package/dist/components/MicrophoneButton/MicrophoneButton.css +50 -18
  71. package/dist/components/MobileSessionPanel/MobileSessionPanel.d.ts +3 -1
  72. package/dist/components/MobileSessionPanel/MobileSessionPanel.js +5 -4
  73. package/dist/components/MobileSessionPanel/MobileSessionPanel.js.map +1 -1
  74. package/dist/components/PoweredBy/PoweredBy.css +10 -2
  75. package/dist/components/SettingsDrawer/SettingsDrawer.js +3 -1
  76. package/dist/components/SettingsDrawer/SettingsDrawer.js.map +1 -1
  77. package/dist/components/ShareButton/ShareButton.js +2 -4
  78. package/dist/components/ShareButton/ShareButton.js.map +1 -1
  79. package/dist/components/StartPanel/StartPanel.js +13 -6
  80. package/dist/components/StartPanel/StartPanel.js.map +1 -1
  81. package/dist/components/UploadButton/UploadButton.js +21 -5
  82. package/dist/components/UploadButton/UploadButton.js.map +1 -1
  83. package/dist/components/UploadButton/UploadDocuments/UploadDocuments.js +126 -60
  84. package/dist/components/UploadButton/UploadDocuments/UploadDocuments.js.map +1 -1
  85. package/dist/components/UploadButton/UploadImages/UploadImages.js +4 -2
  86. package/dist/components/UploadButton/UploadImages/UploadImages.js.map +1 -1
  87. package/dist/components/WhyThisAnswer/WhyThisAnswer.js +3 -1
  88. package/dist/components/WhyThisAnswer/WhyThisAnswer.js.map +1 -1
  89. package/dist/components/layouts/Chat.js +25 -30
  90. package/dist/components/layouts/Chat.js.map +1 -1
  91. package/dist/components/layouts/FullPage.js +36 -9
  92. package/dist/components/layouts/FullPage.js.map +1 -1
  93. package/dist/components/layouts/HiddenChat.js +12 -237
  94. package/dist/components/layouts/HiddenChat.js.map +1 -1
  95. package/dist/components/layouts/Totem.js +10 -1
  96. package/dist/components/layouts/Totem.js.map +1 -1
  97. package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.js +29 -2
  98. package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +1 -1
  99. package/dist/components/layouts/WebsiteAssistant/website-assistant.css +160 -59
  100. package/dist/components/layouts/ZoomedFullBody.js +36 -9
  101. package/dist/components/layouts/ZoomedFullBody.js.map +1 -1
  102. package/dist/components/layouts/chat.css +77 -63
  103. package/dist/components/layouts/fullpage.css +229 -84
  104. package/dist/components/layouts/hidden-chat.css +148 -33
  105. package/dist/components/layouts/totem.css +151 -50
  106. package/dist/components/layouts/zoomed-full-body.css +332 -33
  107. package/dist/context/widgetSurfaceContext.d.ts +3 -0
  108. package/dist/context/widgetSurfaceContext.js +11 -0
  109. package/dist/context/widgetSurfaceContext.js.map +1 -0
  110. package/dist/helpers/constants.d.ts +3 -0
  111. package/dist/helpers/constants.js +27 -1
  112. package/dist/helpers/constants.js.map +1 -1
  113. package/dist/helpers/credits.d.ts +5 -2
  114. package/dist/helpers/credits.js +5 -1
  115. package/dist/helpers/credits.js.map +1 -1
  116. package/dist/helpers/message.d.ts +1 -1
  117. package/dist/helpers/message.js +4 -4
  118. package/dist/helpers/message.js.map +1 -1
  119. package/dist/helpers/nats/getNatsConfig.d.ts +9 -0
  120. package/dist/helpers/nats/getNatsConfig.js +65 -0
  121. package/dist/helpers/nats/getNatsConfig.js.map +1 -0
  122. package/dist/helpers/nats/isSessionExpiredError.d.ts +3 -0
  123. package/dist/helpers/nats/isSessionExpiredError.js +36 -0
  124. package/dist/helpers/nats/isSessionExpiredError.js.map +1 -0
  125. package/dist/helpers/nats/useNats.d.ts +12 -0
  126. package/dist/helpers/nats/useNats.js +75 -0
  127. package/dist/helpers/nats/useNats.js.map +1 -0
  128. package/dist/helpers/nats/useNatsSession.d.ts +28 -0
  129. package/dist/helpers/nats/useNatsSession.js +212 -0
  130. package/dist/helpers/nats/useNatsSession.js.map +1 -0
  131. package/dist/helpers/positionPopover.d.ts +1 -0
  132. package/dist/helpers/positionPopover.js +7 -0
  133. package/dist/helpers/positionPopover.js.map +1 -0
  134. package/dist/helpers/usePressTooltip.d.ts +13 -0
  135. package/dist/helpers/usePressTooltip.js +23 -0
  136. package/dist/helpers/usePressTooltip.js.map +1 -0
  137. package/dist/helpers/utils.d.ts +21 -0
  138. package/dist/helpers/utils.js +75 -4
  139. package/dist/helpers/utils.js.map +1 -1
  140. package/dist/locales/de.json +11 -1
  141. package/dist/locales/en.json +12 -2
  142. package/dist/locales/es.json +11 -1
  143. package/dist/locales/fr.json +11 -1
  144. package/dist/locales/it.json +12 -2
  145. package/dist/styles.css +1 -163
  146. package/dist/types/integration.d.ts +3 -0
  147. package/dist/types/integration.js +16 -0
  148. package/dist/types/integration.js.map +1 -0
  149. package/dist/version.d.ts +1 -1
  150. package/dist/version.js +1 -1
  151. package/dist/version.js.map +1 -1
  152. package/esm/components/AgeVerificationModal/AgeVerificationModal.js +8 -3
  153. package/esm/components/AgeVerificationModal/AgeVerificationModal.js.map +1 -1
  154. package/esm/components/Auth/Auth.js +3 -1
  155. package/esm/components/Auth/Auth.js.map +1 -1
  156. package/esm/components/Avatar/Avatar.js +5 -10
  157. package/esm/components/Avatar/Avatar.js.map +1 -1
  158. package/esm/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.js +9 -2
  159. package/esm/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.js.map +1 -1
  160. package/esm/components/Avatar/AvatarView/AvatarComponent/components/controllers/MorphTargetController.js +2 -2
  161. package/esm/components/Avatar/AvatarView/AvatarComponent/components/controllers/MorphTargetController.js.map +1 -1
  162. package/esm/components/Avatar/AvatarView/AvatarComponent/constants.d.ts +2 -0
  163. package/esm/components/Avatar/AvatarView/AvatarComponent/constants.js +13 -4
  164. package/esm/components/Avatar/AvatarView/AvatarComponent/constants.js.map +1 -1
  165. package/esm/components/Chat/Chat.css +108 -20
  166. package/esm/components/Chat/Chat.d.ts +3 -0
  167. package/esm/components/Chat/Chat.js +63 -55
  168. package/esm/components/Chat/Chat.js.map +1 -1
  169. package/esm/components/ChatBubble/ChatBubble.css +42 -14
  170. package/esm/components/ChatBubble/ChatBubble.js +24 -16
  171. package/esm/components/ChatBubble/ChatBubble.js.map +1 -1
  172. package/esm/components/ChatHistoryDrawer/ChatHistory.css +4 -0
  173. package/esm/components/ChatHistoryDrawer/ChatHistory.js +27 -10
  174. package/esm/components/ChatHistoryDrawer/ChatHistory.js.map +1 -1
  175. package/esm/components/ChatInputs/ChatInputs.css +292 -108
  176. package/esm/components/ChatInputs/ChatInputs.d.ts +1 -0
  177. package/esm/components/ChatInputs/ChatInputs.js +2 -2
  178. package/esm/components/ChatInputs/ChatInputs.js.map +1 -1
  179. package/esm/components/ChatTextArea/ChatTextArea.css +30 -6
  180. package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js +6 -3
  181. package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
  182. package/esm/components/ContentPreviewModal/ContentPreviewModal.js +3 -1
  183. package/esm/components/ContentPreviewModal/ContentPreviewModal.js.map +1 -1
  184. package/esm/components/DateSelector/DateSelector.d.ts +2 -1
  185. package/esm/components/DateSelector/DateSelector.js +17 -7
  186. package/esm/components/DateSelector/DateSelector.js.map +1 -1
  187. package/esm/components/ExpertsDrawer/ExpertsDrawer.js +3 -1
  188. package/esm/components/ExpertsDrawer/ExpertsDrawer.js.map +1 -1
  189. package/esm/components/FilePreview/FilePreview.js +24 -7
  190. package/esm/components/FilePreview/FilePreview.js.map +1 -1
  191. package/esm/components/Header/ChatConsumptionDropdown.d.ts +3 -1
  192. package/esm/components/Header/ChatConsumptionDropdown.js +5 -4
  193. package/esm/components/Header/ChatConsumptionDropdown.js.map +1 -1
  194. package/esm/components/Header/Header.css +16 -10
  195. package/esm/components/Header/Header.js +104 -23
  196. package/esm/components/Header/Header.js.map +1 -1
  197. package/esm/components/KnownFacts/KnownFacts.js +7 -5
  198. package/esm/components/KnownFacts/KnownFacts.js.map +1 -1
  199. package/esm/components/LoginDrawer/LoginDrawer.css +1 -0
  200. package/esm/components/LoginDrawer/LoginDrawer.js +3 -1
  201. package/esm/components/LoginDrawer/LoginDrawer.js.map +1 -1
  202. package/esm/components/MediaWidget/MediaItemWidget.js +16 -14
  203. package/esm/components/MediaWidget/MediaItemWidget.js.map +1 -1
  204. package/esm/components/MediaWidget/MediaItemWidget.utils.d.ts +3 -2
  205. package/esm/components/MediaWidget/MediaItemWidget.utils.js +27 -6
  206. package/esm/components/MediaWidget/MediaItemWidget.utils.js.map +1 -1
  207. package/esm/components/MediaWidget/MediaPreviewModal.js +6 -7
  208. package/esm/components/MediaWidget/MediaPreviewModal.js.map +1 -1
  209. package/esm/components/MemoriArtifactSystem/components/ArtifactActions/styles.css +5 -4
  210. package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.css +108 -42
  211. package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.d.ts +1 -0
  212. package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.js +18 -10
  213. package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.js.map +1 -1
  214. package/esm/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.js +2 -2
  215. package/esm/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.js.map +1 -1
  216. package/esm/components/MemoriWidget/MemoriWidget.css +5 -5
  217. package/esm/components/MemoriWidget/MemoriWidget.d.ts +1 -0
  218. package/esm/components/MemoriWidget/MemoriWidget.js +789 -431
  219. package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
  220. package/esm/components/MicrophoneButton/MicrophoneButton.css +50 -18
  221. package/esm/components/MobileSessionPanel/MobileSessionPanel.d.ts +3 -1
  222. package/esm/components/MobileSessionPanel/MobileSessionPanel.js +5 -4
  223. package/esm/components/MobileSessionPanel/MobileSessionPanel.js.map +1 -1
  224. package/esm/components/PoweredBy/PoweredBy.css +10 -2
  225. package/esm/components/SettingsDrawer/SettingsDrawer.js +3 -1
  226. package/esm/components/SettingsDrawer/SettingsDrawer.js.map +1 -1
  227. package/esm/components/ShareButton/ShareButton.js +2 -4
  228. package/esm/components/ShareButton/ShareButton.js.map +1 -1
  229. package/esm/components/StartPanel/StartPanel.js +13 -6
  230. package/esm/components/StartPanel/StartPanel.js.map +1 -1
  231. package/esm/components/UploadButton/UploadButton.js +21 -5
  232. package/esm/components/UploadButton/UploadButton.js.map +1 -1
  233. package/esm/components/UploadButton/UploadDocuments/UploadDocuments.js +126 -60
  234. package/esm/components/UploadButton/UploadDocuments/UploadDocuments.js.map +1 -1
  235. package/esm/components/UploadButton/UploadImages/UploadImages.js +4 -2
  236. package/esm/components/UploadButton/UploadImages/UploadImages.js.map +1 -1
  237. package/esm/components/WhyThisAnswer/WhyThisAnswer.js +3 -1
  238. package/esm/components/WhyThisAnswer/WhyThisAnswer.js.map +1 -1
  239. package/esm/components/layouts/Chat.js +25 -30
  240. package/esm/components/layouts/Chat.js.map +1 -1
  241. package/esm/components/layouts/FullPage.js +36 -9
  242. package/esm/components/layouts/FullPage.js.map +1 -1
  243. package/esm/components/layouts/HiddenChat.js +14 -239
  244. package/esm/components/layouts/HiddenChat.js.map +1 -1
  245. package/esm/components/layouts/Totem.js +10 -1
  246. package/esm/components/layouts/Totem.js.map +1 -1
  247. package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js +29 -2
  248. package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +1 -1
  249. package/esm/components/layouts/WebsiteAssistant/website-assistant.css +160 -59
  250. package/esm/components/layouts/ZoomedFullBody.js +36 -9
  251. package/esm/components/layouts/ZoomedFullBody.js.map +1 -1
  252. package/esm/components/layouts/chat.css +77 -63
  253. package/esm/components/layouts/fullpage.css +229 -84
  254. package/esm/components/layouts/hidden-chat.css +148 -33
  255. package/esm/components/layouts/totem.css +151 -50
  256. package/esm/components/layouts/zoomed-full-body.css +332 -33
  257. package/esm/context/widgetSurfaceContext.d.ts +3 -0
  258. package/esm/context/widgetSurfaceContext.js +7 -0
  259. package/esm/context/widgetSurfaceContext.js.map +1 -0
  260. package/esm/helpers/constants.d.ts +3 -0
  261. package/esm/helpers/constants.js +26 -0
  262. package/esm/helpers/constants.js.map +1 -1
  263. package/esm/helpers/credits.d.ts +5 -2
  264. package/esm/helpers/credits.js +5 -1
  265. package/esm/helpers/credits.js.map +1 -1
  266. package/esm/helpers/message.d.ts +1 -1
  267. package/esm/helpers/message.js +2 -2
  268. package/esm/helpers/message.js.map +1 -1
  269. package/esm/helpers/nats/getNatsConfig.d.ts +9 -0
  270. package/esm/helpers/nats/getNatsConfig.js +61 -0
  271. package/esm/helpers/nats/getNatsConfig.js.map +1 -0
  272. package/esm/helpers/nats/isSessionExpiredError.d.ts +3 -0
  273. package/esm/helpers/nats/isSessionExpiredError.js +32 -0
  274. package/esm/helpers/nats/isSessionExpiredError.js.map +1 -0
  275. package/esm/helpers/nats/useNats.d.ts +12 -0
  276. package/esm/helpers/nats/useNats.js +72 -0
  277. package/esm/helpers/nats/useNats.js.map +1 -0
  278. package/esm/helpers/nats/useNatsSession.d.ts +28 -0
  279. package/esm/helpers/nats/useNatsSession.js +208 -0
  280. package/esm/helpers/nats/useNatsSession.js.map +1 -0
  281. package/esm/helpers/positionPopover.d.ts +1 -0
  282. package/esm/helpers/positionPopover.js +4 -0
  283. package/esm/helpers/positionPopover.js.map +1 -0
  284. package/esm/helpers/usePressTooltip.d.ts +13 -0
  285. package/esm/helpers/usePressTooltip.js +20 -0
  286. package/esm/helpers/usePressTooltip.js.map +1 -0
  287. package/esm/helpers/utils.d.ts +21 -0
  288. package/esm/helpers/utils.js +68 -3
  289. package/esm/helpers/utils.js.map +1 -1
  290. package/esm/locales/de.json +11 -1
  291. package/esm/locales/en.json +12 -2
  292. package/esm/locales/es.json +11 -1
  293. package/esm/locales/fr.json +11 -1
  294. package/esm/locales/it.json +12 -2
  295. package/esm/styles.css +1 -163
  296. package/esm/types/integration.d.ts +3 -0
  297. package/esm/types/integration.js +11 -0
  298. package/esm/types/integration.js.map +1 -0
  299. package/esm/version.d.ts +1 -1
  300. package/esm/version.js +1 -1
  301. package/esm/version.js.map +1 -1
  302. package/package.json +13 -6
  303. package/src/components/AgeVerificationModal/AgeVerificationModal.tsx +9 -1
  304. package/src/components/Auth/Auth.tsx +3 -0
  305. package/src/components/Avatar/Avatar.stories.tsx +45 -28
  306. package/src/components/Avatar/Avatar.test.tsx +54 -0
  307. package/src/components/Avatar/Avatar.tsx +8 -12
  308. package/src/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.tsx +12 -5
  309. package/src/components/Avatar/AvatarView/AvatarComponent/components/controllers/MorphTargetController.ts +2 -1
  310. package/src/components/Avatar/AvatarView/AvatarComponent/constants.ts +16 -4
  311. package/src/components/Avatar/__snapshots__/Avatar.test.tsx.snap +164 -0
  312. package/src/components/BlockedMemoriBadge/__snapshots__/BlockedMemoriBadge.test.tsx.snap +10 -10
  313. package/src/components/Chat/Chat.css +108 -20
  314. package/src/components/Chat/Chat.tsx +28 -0
  315. package/src/components/Chat/__snapshots__/Chat.test.tsx.snap +7449 -7369
  316. package/src/components/ChatBubble/ChatBubble.css +42 -14
  317. package/src/components/ChatBubble/ChatBubble.tsx +44 -12
  318. package/src/components/ChatBubble/__snapshots__/ChatBubble.test.tsx.snap +90 -90
  319. package/src/components/ChatHistoryDrawer/ChatHistory.css +4 -0
  320. package/src/components/ChatHistoryDrawer/ChatHistory.test.tsx +77 -1
  321. package/src/components/ChatHistoryDrawer/ChatHistory.tsx +59 -27
  322. package/src/components/ChatInputs/ChatInputs.css +292 -108
  323. package/src/components/ChatInputs/ChatInputs.tsx +14 -4
  324. package/src/components/ChatTextArea/ChatTextArea.css +30 -6
  325. package/src/components/CompletionProviderStatus/CompletionProviderStatus.tsx +8 -4
  326. package/src/components/CompletionProviderStatus/__snapshots__/CompletionProviderStatus.test.tsx.snap +6 -6
  327. package/src/components/ContentPreviewModal/ContentPreviewModal.tsx +3 -0
  328. package/src/components/DateSelector/DateSelector.stories.tsx +11 -2
  329. package/src/components/DateSelector/DateSelector.tsx +28 -9
  330. package/src/components/ExpertsDrawer/ExpertsDrawer.tsx +3 -0
  331. package/src/components/FeedbackButtons/__snapshots__/FeedbackButtons.test.tsx.snap +2 -2
  332. package/src/components/FilePreview/FilePreview.tsx +28 -7
  333. package/src/components/Header/ChatConsumptionDropdown.tsx +16 -5
  334. package/src/components/Header/Header.css +16 -10
  335. package/src/components/Header/Header.tsx +331 -53
  336. package/src/components/Header/__snapshots__/Header.test.tsx.snap +109 -83
  337. package/src/components/KnownFacts/KnownFacts.tsx +7 -0
  338. package/src/components/LoginDrawer/LoginDrawer.css +1 -0
  339. package/src/components/LoginDrawer/LoginDrawer.tsx +3 -0
  340. package/src/components/MediaWidget/MediaItemWidget.tsx +26 -13
  341. package/src/components/MediaWidget/MediaItemWidget.utils.test.ts +45 -2
  342. package/src/components/MediaWidget/MediaItemWidget.utils.ts +39 -6
  343. package/src/components/MediaWidget/MediaPreviewModal.tsx +9 -7
  344. package/src/components/MemoriArtifactSystem/ArtifactDrawer.stories.tsx +218 -2252
  345. package/src/components/MemoriArtifactSystem/components/ArtifactActions/styles.css +5 -4
  346. package/src/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.css +108 -42
  347. package/src/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.tsx +35 -14
  348. package/src/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.tsx +4 -3
  349. package/src/components/MemoriWidget/MemoriWidget.css +5 -5
  350. package/src/components/MemoriWidget/MemoriWidget.tsx +1234 -729
  351. package/src/components/MicrophoneButton/MicrophoneButton.css +50 -18
  352. package/src/components/MobileSessionPanel/MobileSessionPanel.tsx +44 -30
  353. package/src/components/PoweredBy/PoweredBy.css +10 -2
  354. package/src/components/SettingsDrawer/SettingsDrawer.tsx +3 -0
  355. package/src/components/ShareButton/ShareButton.tsx +6 -3
  356. package/src/components/ShareButton/__snapshots__/ShareButton.test.tsx.snap +27 -18
  357. package/src/components/StartPanel/StartPanel.stories.tsx +22 -0
  358. package/src/components/StartPanel/StartPanel.test.tsx +64 -1
  359. package/src/components/StartPanel/StartPanel.tsx +29 -3
  360. package/src/components/StartPanel/__snapshots__/StartPanel.test.tsx.snap +293 -32
  361. package/src/components/UploadButton/UploadButton.tsx +30 -11
  362. package/src/components/UploadButton/UploadDocuments/UploadDocuments.tsx +151 -61
  363. package/src/components/UploadButton/UploadImages/UploadImages.tsx +4 -1
  364. package/src/components/UploadButton/__snapshots__/UploadButton.test.tsx.snap +4 -4
  365. package/src/components/WhyThisAnswer/WhyThisAnswer.tsx +3 -0
  366. package/src/components/layouts/Chat.tsx +147 -148
  367. package/src/components/layouts/FullPage.tsx +92 -25
  368. package/src/components/layouts/HiddenChat.tsx +21 -413
  369. package/src/components/layouts/Totem.tsx +20 -3
  370. package/src/components/layouts/WebsiteAssistant/WebsiteAssistant.tsx +71 -15
  371. package/src/components/layouts/WebsiteAssistant/__snapshots__/WebsiteAssistant.test.tsx.snap +48 -44
  372. package/src/components/layouts/WebsiteAssistant/website-assistant.css +160 -59
  373. package/src/components/layouts/ZoomedFullBody.tsx +95 -27
  374. package/src/components/layouts/__snapshots__/Chat.test.tsx.snap +610 -582
  375. package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +1235 -1165
  376. package/src/components/layouts/__snapshots__/HiddenChat.test.tsx.snap +542 -438
  377. package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +579 -602
  378. package/src/components/layouts/__snapshots__/ZoomedFullBody.test.tsx.snap +599 -564
  379. package/src/components/layouts/chat.css +77 -63
  380. package/src/components/layouts/fullpage.css +229 -84
  381. package/src/components/layouts/hidden-chat.css +148 -33
  382. package/src/components/layouts/layouts.stories.tsx +133 -13
  383. package/src/components/layouts/totem.css +151 -50
  384. package/src/components/layouts/zoomed-full-body.css +332 -33
  385. package/src/context/widgetSurfaceContext.tsx +14 -0
  386. package/src/helpers/constants.ts +32 -1
  387. package/src/helpers/credits.ts +16 -1
  388. package/src/helpers/message.test.ts +28 -1
  389. package/src/helpers/message.ts +4 -4
  390. package/src/helpers/nats/getNatsConfig.ts +145 -0
  391. package/src/helpers/nats/isSessionExpiredError.test.ts +38 -0
  392. package/src/helpers/nats/isSessionExpiredError.ts +51 -0
  393. package/src/helpers/nats/useNats.ts +124 -0
  394. package/src/helpers/nats/useNatsSession.ts +394 -0
  395. package/src/helpers/positionPopover.test.ts +33 -0
  396. package/src/helpers/positionPopover.ts +13 -0
  397. package/src/helpers/usePressTooltip.ts +29 -0
  398. package/src/helpers/utils.test.ts +162 -0
  399. package/src/helpers/utils.ts +108 -3
  400. package/src/index.stories.tsx +32 -0
  401. package/src/locales/de.json +11 -1
  402. package/src/locales/en.json +12 -2
  403. package/src/locales/es.json +11 -1
  404. package/src/locales/fr.json +11 -1
  405. package/src/locales/it.json +12 -2
  406. package/src/styles.css +96 -12
  407. package/src/types/integration.test.ts +32 -0
  408. package/src/types/integration.ts +31 -0
  409. package/src/version.ts +1 -1
  410. package/dist/components/PositionDrawer/PositionDrawer.d.ts +0 -12
  411. package/dist/components/PositionDrawer/PositionDrawer.js +0 -17
  412. package/dist/components/PositionDrawer/PositionDrawer.js.map +0 -1
  413. package/dist/components/icons/AI.d.ts +0 -6
  414. package/dist/components/icons/AI.js +0 -6
  415. package/dist/components/icons/AI.js.map +0 -1
  416. package/dist/components/icons/Alert.d.ts +0 -6
  417. package/dist/components/icons/Alert.js +0 -6
  418. package/dist/components/icons/Alert.js.map +0 -1
  419. package/dist/components/icons/ArrowUp.d.ts +0 -6
  420. package/dist/components/icons/ArrowUp.js +0 -6
  421. package/dist/components/icons/ArrowUp.js.map +0 -1
  422. package/dist/components/icons/Bug.d.ts +0 -6
  423. package/dist/components/icons/Bug.js +0 -6
  424. package/dist/components/icons/Bug.js.map +0 -1
  425. package/dist/components/icons/Chat.d.ts +0 -6
  426. package/dist/components/icons/Chat.js +0 -6
  427. package/dist/components/icons/Chat.js.map +0 -1
  428. package/dist/components/icons/ChevronDown.d.ts +0 -6
  429. package/dist/components/icons/ChevronDown.js +0 -6
  430. package/dist/components/icons/ChevronDown.js.map +0 -1
  431. package/dist/components/icons/ChevronLeft.d.ts +0 -6
  432. package/dist/components/icons/ChevronLeft.js +0 -6
  433. package/dist/components/icons/ChevronLeft.js.map +0 -1
  434. package/dist/components/icons/ChevronRight.d.ts +0 -6
  435. package/dist/components/icons/ChevronRight.js +0 -6
  436. package/dist/components/icons/ChevronRight.js.map +0 -1
  437. package/dist/components/icons/ChevronUp.d.ts +0 -6
  438. package/dist/components/icons/ChevronUp.js +0 -6
  439. package/dist/components/icons/ChevronUp.js.map +0 -1
  440. package/dist/components/icons/Clear.d.ts +0 -6
  441. package/dist/components/icons/Clear.js +0 -6
  442. package/dist/components/icons/Clear.js.map +0 -1
  443. package/dist/components/icons/Close.d.ts +0 -7
  444. package/dist/components/icons/Close.js +0 -6
  445. package/dist/components/icons/Close.js.map +0 -1
  446. package/dist/components/icons/Code.d.ts +0 -6
  447. package/dist/components/icons/Code.js +0 -6
  448. package/dist/components/icons/Code.js.map +0 -1
  449. package/dist/components/icons/Copy.d.ts +0 -6
  450. package/dist/components/icons/Copy.js +0 -6
  451. package/dist/components/icons/Copy.js.map +0 -1
  452. package/dist/components/icons/DeepThought.d.ts +0 -6
  453. package/dist/components/icons/DeepThought.js +0 -6
  454. package/dist/components/icons/DeepThought.js.map +0 -1
  455. package/dist/components/icons/Delete.d.ts +0 -6
  456. package/dist/components/icons/Delete.js +0 -6
  457. package/dist/components/icons/Delete.js.map +0 -1
  458. package/dist/components/icons/Document.d.ts +0 -5
  459. package/dist/components/icons/Document.js +0 -10
  460. package/dist/components/icons/Document.js.map +0 -1
  461. package/dist/components/icons/Download.d.ts +0 -6
  462. package/dist/components/icons/Download.js +0 -6
  463. package/dist/components/icons/Download.js.map +0 -1
  464. package/dist/components/icons/Edit.d.ts +0 -6
  465. package/dist/components/icons/Edit.js +0 -6
  466. package/dist/components/icons/Edit.js.map +0 -1
  467. package/dist/components/icons/Expand.d.ts +0 -6
  468. package/dist/components/icons/Expand.js +0 -6
  469. package/dist/components/icons/Expand.js.map +0 -1
  470. package/dist/components/icons/Eye.d.ts +0 -6
  471. package/dist/components/icons/Eye.js +0 -6
  472. package/dist/components/icons/Eye.js.map +0 -1
  473. package/dist/components/icons/EyeInvisible.d.ts +0 -6
  474. package/dist/components/icons/EyeInvisible.js +0 -6
  475. package/dist/components/icons/EyeInvisible.js.map +0 -1
  476. package/dist/components/icons/Facebook.d.ts +0 -6
  477. package/dist/components/icons/Facebook.js +0 -6
  478. package/dist/components/icons/Facebook.js.map +0 -1
  479. package/dist/components/icons/Feedback.d.ts +0 -6
  480. package/dist/components/icons/Feedback.js +0 -6
  481. package/dist/components/icons/Feedback.js.map +0 -1
  482. package/dist/components/icons/File.d.ts +0 -6
  483. package/dist/components/icons/File.js +0 -6
  484. package/dist/components/icons/File.js.map +0 -1
  485. package/dist/components/icons/FileExcel.d.ts +0 -6
  486. package/dist/components/icons/FileExcel.js +0 -6
  487. package/dist/components/icons/FileExcel.js.map +0 -1
  488. package/dist/components/icons/FilePdf.d.ts +0 -6
  489. package/dist/components/icons/FilePdf.js +0 -6
  490. package/dist/components/icons/FilePdf.js.map +0 -1
  491. package/dist/components/icons/FileWord.d.ts +0 -6
  492. package/dist/components/icons/FileWord.js +0 -6
  493. package/dist/components/icons/FileWord.js.map +0 -1
  494. package/dist/components/icons/Fullscreen.d.ts +0 -6
  495. package/dist/components/icons/Fullscreen.js +0 -6
  496. package/dist/components/icons/Fullscreen.js.map +0 -1
  497. package/dist/components/icons/FullscreenExit.d.ts +0 -6
  498. package/dist/components/icons/FullscreenExit.js +0 -6
  499. package/dist/components/icons/FullscreenExit.js.map +0 -1
  500. package/dist/components/icons/Group.d.ts +0 -6
  501. package/dist/components/icons/Group.js +0 -6
  502. package/dist/components/icons/Group.js.map +0 -1
  503. package/dist/components/icons/History.d.ts +0 -7
  504. package/dist/components/icons/History.js +0 -6
  505. package/dist/components/icons/History.js.map +0 -1
  506. package/dist/components/icons/Image.d.ts +0 -4
  507. package/dist/components/icons/Image.js +0 -9
  508. package/dist/components/icons/Image.js.map +0 -1
  509. package/dist/components/icons/Info.d.ts +0 -6
  510. package/dist/components/icons/Info.js +0 -6
  511. package/dist/components/icons/Info.js.map +0 -1
  512. package/dist/components/icons/Link.d.ts +0 -6
  513. package/dist/components/icons/Link.js +0 -6
  514. package/dist/components/icons/Link.js.map +0 -1
  515. package/dist/components/icons/Linkedin.d.ts +0 -6
  516. package/dist/components/icons/Linkedin.js +0 -6
  517. package/dist/components/icons/Linkedin.js.map +0 -1
  518. package/dist/components/icons/Loading.d.ts +0 -7
  519. package/dist/components/icons/Loading.js +0 -10
  520. package/dist/components/icons/Loading.js.map +0 -1
  521. package/dist/components/icons/Logout.d.ts +0 -6
  522. package/dist/components/icons/Logout.js +0 -6
  523. package/dist/components/icons/Logout.js.map +0 -1
  524. package/dist/components/icons/Mail.d.ts +0 -6
  525. package/dist/components/icons/Mail.js +0 -6
  526. package/dist/components/icons/Mail.js.map +0 -1
  527. package/dist/components/icons/MapMarker.d.ts +0 -6
  528. package/dist/components/icons/MapMarker.js +0 -6
  529. package/dist/components/icons/MapMarker.js.map +0 -1
  530. package/dist/components/icons/MenuHorizontal.d.ts +0 -7
  531. package/dist/components/icons/MenuHorizontal.js +0 -6
  532. package/dist/components/icons/MenuHorizontal.js.map +0 -1
  533. package/dist/components/icons/MenuVertical.d.ts +0 -7
  534. package/dist/components/icons/MenuVertical.js +0 -6
  535. package/dist/components/icons/MenuVertical.js.map +0 -1
  536. package/dist/components/icons/Message.d.ts +0 -6
  537. package/dist/components/icons/Message.js +0 -6
  538. package/dist/components/icons/Message.js.map +0 -1
  539. package/dist/components/icons/Microphone.d.ts +0 -6
  540. package/dist/components/icons/Microphone.js +0 -6
  541. package/dist/components/icons/Microphone.js.map +0 -1
  542. package/dist/components/icons/Minus.d.ts +0 -6
  543. package/dist/components/icons/Minus.js +0 -6
  544. package/dist/components/icons/Minus.js.map +0 -1
  545. package/dist/components/icons/MinusCircle.d.ts +0 -6
  546. package/dist/components/icons/MinusCircle.js +0 -6
  547. package/dist/components/icons/MinusCircle.js.map +0 -1
  548. package/dist/components/icons/PaperClip.d.ts +0 -6
  549. package/dist/components/icons/PaperClip.js +0 -6
  550. package/dist/components/icons/PaperClip.js.map +0 -1
  551. package/dist/components/icons/Picture.d.ts +0 -6
  552. package/dist/components/icons/Picture.js +0 -6
  553. package/dist/components/icons/Picture.js.map +0 -1
  554. package/dist/components/icons/Plus.d.ts +0 -6
  555. package/dist/components/icons/Plus.js +0 -6
  556. package/dist/components/icons/Plus.js.map +0 -1
  557. package/dist/components/icons/Preview.d.ts +0 -4
  558. package/dist/components/icons/Preview.js +0 -9
  559. package/dist/components/icons/Preview.js.map +0 -1
  560. package/dist/components/icons/Print.d.ts +0 -6
  561. package/dist/components/icons/Print.js +0 -6
  562. package/dist/components/icons/Print.js.map +0 -1
  563. package/dist/components/icons/QuestionHelp.d.ts +0 -6
  564. package/dist/components/icons/QuestionHelp.js +0 -6
  565. package/dist/components/icons/QuestionHelp.js.map +0 -1
  566. package/dist/components/icons/Refresh.d.ts +0 -6
  567. package/dist/components/icons/Refresh.js +0 -6
  568. package/dist/components/icons/Refresh.js.map +0 -1
  569. package/dist/components/icons/SelectIcon.d.ts +0 -6
  570. package/dist/components/icons/SelectIcon.js +0 -6
  571. package/dist/components/icons/SelectIcon.js.map +0 -1
  572. package/dist/components/icons/Send.d.ts +0 -6
  573. package/dist/components/icons/Send.js +0 -6
  574. package/dist/components/icons/Send.js.map +0 -1
  575. package/dist/components/icons/Setting.d.ts +0 -6
  576. package/dist/components/icons/Setting.js +0 -6
  577. package/dist/components/icons/Setting.js.map +0 -1
  578. package/dist/components/icons/Share.d.ts +0 -6
  579. package/dist/components/icons/Share.js +0 -6
  580. package/dist/components/icons/Share.js.map +0 -1
  581. package/dist/components/icons/Sound.d.ts +0 -6
  582. package/dist/components/icons/Sound.js +0 -6
  583. package/dist/components/icons/Sound.js.map +0 -1
  584. package/dist/components/icons/SoundDeactivated.d.ts +0 -6
  585. package/dist/components/icons/SoundDeactivated.js +0 -6
  586. package/dist/components/icons/SoundDeactivated.js.map +0 -1
  587. package/dist/components/icons/Telegram.d.ts +0 -6
  588. package/dist/components/icons/Telegram.js +0 -6
  589. package/dist/components/icons/Telegram.js.map +0 -1
  590. package/dist/components/icons/ThumbDown.d.ts +0 -6
  591. package/dist/components/icons/ThumbDown.js +0 -6
  592. package/dist/components/icons/ThumbDown.js.map +0 -1
  593. package/dist/components/icons/ThumbUp.d.ts +0 -6
  594. package/dist/components/icons/ThumbUp.js +0 -6
  595. package/dist/components/icons/ThumbUp.js.map +0 -1
  596. package/dist/components/icons/Translation.d.ts +0 -6
  597. package/dist/components/icons/Translation.js +0 -6
  598. package/dist/components/icons/Translation.js.map +0 -1
  599. package/dist/components/icons/Twitter.d.ts +0 -6
  600. package/dist/components/icons/Twitter.js +0 -6
  601. package/dist/components/icons/Twitter.js.map +0 -1
  602. package/dist/components/icons/Upload.d.ts +0 -4
  603. package/dist/components/icons/Upload.js +0 -9
  604. package/dist/components/icons/Upload.js.map +0 -1
  605. package/dist/components/icons/User.d.ts +0 -6
  606. package/dist/components/icons/User.js +0 -6
  607. package/dist/components/icons/User.js.map +0 -1
  608. package/dist/components/icons/Warning.d.ts +0 -6
  609. package/dist/components/icons/Warning.js +0 -6
  610. package/dist/components/icons/Warning.js.map +0 -1
  611. package/dist/components/icons/WhatsApp.d.ts +0 -6
  612. package/dist/components/icons/WhatsApp.js +0 -6
  613. package/dist/components/icons/WhatsApp.js.map +0 -1
  614. package/dist/components/icons/loading.css +0 -14
  615. package/dist/components/layouts/WebsiteAssistant.d.ts +0 -4
  616. package/dist/components/layouts/WebsiteAssistant.js +0 -38
  617. package/dist/components/layouts/WebsiteAssistant.js.map +0 -1
  618. package/dist/components/layouts/website-assistant.css +0 -676
  619. package/dist/components/ui/Alert.css +0 -93
  620. package/dist/components/ui/Alert.d.ts +0 -18
  621. package/dist/components/ui/Alert.js +0 -42
  622. package/dist/components/ui/Alert.js.map +0 -1
  623. package/dist/components/ui/Button.css +0 -167
  624. package/dist/components/ui/Button.d.ts +0 -27
  625. package/dist/components/ui/Button.js +0 -23
  626. package/dist/components/ui/Button.js.map +0 -1
  627. package/dist/components/ui/Card.css +0 -65
  628. package/dist/components/ui/Card.d.ts +0 -13
  629. package/dist/components/ui/Card.js +0 -14
  630. package/dist/components/ui/Card.js.map +0 -1
  631. package/dist/components/ui/Checkbox.css +0 -116
  632. package/dist/components/ui/Checkbox.d.ts +0 -11
  633. package/dist/components/ui/Checkbox.js +0 -20
  634. package/dist/components/ui/Checkbox.js.map +0 -1
  635. package/dist/components/ui/ConfirmDialog.css +0 -42
  636. package/dist/components/ui/ConfirmDialog.d.ts +0 -11
  637. package/dist/components/ui/ConfirmDialog.js +0 -12
  638. package/dist/components/ui/ConfirmDialog.js.map +0 -1
  639. package/dist/components/ui/Details.css +0 -66
  640. package/dist/components/ui/Drawer.css +0 -270
  641. package/dist/components/ui/Drawer.d.ts +0 -46
  642. package/dist/components/ui/Drawer.js +0 -60
  643. package/dist/components/ui/Drawer.js.map +0 -1
  644. package/dist/components/ui/Dropdown.css +0 -173
  645. package/dist/components/ui/Dropdown.d.ts +0 -11
  646. package/dist/components/ui/Dropdown.js +0 -33
  647. package/dist/components/ui/Dropdown.js.map +0 -1
  648. package/dist/components/ui/Expandable.css +0 -15
  649. package/dist/components/ui/Expandable.d.ts +0 -15
  650. package/dist/components/ui/Expandable.js +0 -59
  651. package/dist/components/ui/Expandable.js.map +0 -1
  652. package/dist/components/ui/Modal.css +0 -98
  653. package/dist/components/ui/Modal.d.ts +0 -16
  654. package/dist/components/ui/Modal.js +0 -24
  655. package/dist/components/ui/Modal.js.map +0 -1
  656. package/dist/components/ui/Select.css +0 -138
  657. package/dist/components/ui/Select.d.ts +0 -17
  658. package/dist/components/ui/Select.js +0 -17
  659. package/dist/components/ui/Select.js.map +0 -1
  660. package/dist/components/ui/Slider.css +0 -192
  661. package/dist/components/ui/Slider.d.ts +0 -12
  662. package/dist/components/ui/Slider.js +0 -78
  663. package/dist/components/ui/Slider.js.map +0 -1
  664. package/dist/components/ui/Spin.css +0 -31
  665. package/dist/components/ui/Spin.d.ts +0 -9
  666. package/dist/components/ui/Spin.js +0 -12
  667. package/dist/components/ui/Spin.js.map +0 -1
  668. package/dist/components/ui/Table.css +0 -132
  669. package/dist/components/ui/Tooltip.css +0 -171
  670. package/dist/components/ui/Tooltip.d.ts +0 -11
  671. package/dist/components/ui/Tooltip.js +0 -90
  672. package/dist/components/ui/Tooltip.js.map +0 -1
  673. package/esm/components/PositionDrawer/PositionDrawer.d.ts +0 -12
  674. package/esm/components/PositionDrawer/PositionDrawer.js +0 -14
  675. package/esm/components/PositionDrawer/PositionDrawer.js.map +0 -1
  676. package/esm/components/icons/AI.d.ts +0 -6
  677. package/esm/components/icons/AI.js +0 -4
  678. package/esm/components/icons/AI.js.map +0 -1
  679. package/esm/components/icons/Alert.d.ts +0 -6
  680. package/esm/components/icons/Alert.js +0 -4
  681. package/esm/components/icons/Alert.js.map +0 -1
  682. package/esm/components/icons/ArrowUp.d.ts +0 -6
  683. package/esm/components/icons/ArrowUp.js +0 -4
  684. package/esm/components/icons/ArrowUp.js.map +0 -1
  685. package/esm/components/icons/Bug.d.ts +0 -6
  686. package/esm/components/icons/Bug.js +0 -4
  687. package/esm/components/icons/Bug.js.map +0 -1
  688. package/esm/components/icons/Chat.d.ts +0 -6
  689. package/esm/components/icons/Chat.js +0 -4
  690. package/esm/components/icons/Chat.js.map +0 -1
  691. package/esm/components/icons/ChevronDown.d.ts +0 -6
  692. package/esm/components/icons/ChevronDown.js +0 -4
  693. package/esm/components/icons/ChevronDown.js.map +0 -1
  694. package/esm/components/icons/ChevronLeft.d.ts +0 -6
  695. package/esm/components/icons/ChevronLeft.js +0 -4
  696. package/esm/components/icons/ChevronLeft.js.map +0 -1
  697. package/esm/components/icons/ChevronRight.d.ts +0 -6
  698. package/esm/components/icons/ChevronRight.js +0 -4
  699. package/esm/components/icons/ChevronRight.js.map +0 -1
  700. package/esm/components/icons/ChevronUp.d.ts +0 -6
  701. package/esm/components/icons/ChevronUp.js +0 -4
  702. package/esm/components/icons/ChevronUp.js.map +0 -1
  703. package/esm/components/icons/Clear.d.ts +0 -6
  704. package/esm/components/icons/Clear.js +0 -4
  705. package/esm/components/icons/Clear.js.map +0 -1
  706. package/esm/components/icons/Close.d.ts +0 -7
  707. package/esm/components/icons/Close.js +0 -4
  708. package/esm/components/icons/Close.js.map +0 -1
  709. package/esm/components/icons/Code.d.ts +0 -6
  710. package/esm/components/icons/Code.js +0 -4
  711. package/esm/components/icons/Code.js.map +0 -1
  712. package/esm/components/icons/Copy.d.ts +0 -6
  713. package/esm/components/icons/Copy.js +0 -4
  714. package/esm/components/icons/Copy.js.map +0 -1
  715. package/esm/components/icons/DeepThought.d.ts +0 -6
  716. package/esm/components/icons/DeepThought.js +0 -4
  717. package/esm/components/icons/DeepThought.js.map +0 -1
  718. package/esm/components/icons/Delete.d.ts +0 -6
  719. package/esm/components/icons/Delete.js +0 -4
  720. package/esm/components/icons/Delete.js.map +0 -1
  721. package/esm/components/icons/Document.d.ts +0 -5
  722. package/esm/components/icons/Document.js +0 -6
  723. package/esm/components/icons/Document.js.map +0 -1
  724. package/esm/components/icons/Download.d.ts +0 -6
  725. package/esm/components/icons/Download.js +0 -4
  726. package/esm/components/icons/Download.js.map +0 -1
  727. package/esm/components/icons/Edit.d.ts +0 -6
  728. package/esm/components/icons/Edit.js +0 -4
  729. package/esm/components/icons/Edit.js.map +0 -1
  730. package/esm/components/icons/Expand.d.ts +0 -6
  731. package/esm/components/icons/Expand.js +0 -4
  732. package/esm/components/icons/Expand.js.map +0 -1
  733. package/esm/components/icons/Eye.d.ts +0 -6
  734. package/esm/components/icons/Eye.js +0 -4
  735. package/esm/components/icons/Eye.js.map +0 -1
  736. package/esm/components/icons/EyeInvisible.d.ts +0 -6
  737. package/esm/components/icons/EyeInvisible.js +0 -4
  738. package/esm/components/icons/EyeInvisible.js.map +0 -1
  739. package/esm/components/icons/Facebook.d.ts +0 -6
  740. package/esm/components/icons/Facebook.js +0 -4
  741. package/esm/components/icons/Facebook.js.map +0 -1
  742. package/esm/components/icons/Feedback.d.ts +0 -6
  743. package/esm/components/icons/Feedback.js +0 -4
  744. package/esm/components/icons/Feedback.js.map +0 -1
  745. package/esm/components/icons/File.d.ts +0 -6
  746. package/esm/components/icons/File.js +0 -4
  747. package/esm/components/icons/File.js.map +0 -1
  748. package/esm/components/icons/FileExcel.d.ts +0 -6
  749. package/esm/components/icons/FileExcel.js +0 -4
  750. package/esm/components/icons/FileExcel.js.map +0 -1
  751. package/esm/components/icons/FilePdf.d.ts +0 -6
  752. package/esm/components/icons/FilePdf.js +0 -4
  753. package/esm/components/icons/FilePdf.js.map +0 -1
  754. package/esm/components/icons/FileWord.d.ts +0 -6
  755. package/esm/components/icons/FileWord.js +0 -4
  756. package/esm/components/icons/FileWord.js.map +0 -1
  757. package/esm/components/icons/Fullscreen.d.ts +0 -6
  758. package/esm/components/icons/Fullscreen.js +0 -4
  759. package/esm/components/icons/Fullscreen.js.map +0 -1
  760. package/esm/components/icons/FullscreenExit.d.ts +0 -6
  761. package/esm/components/icons/FullscreenExit.js +0 -4
  762. package/esm/components/icons/FullscreenExit.js.map +0 -1
  763. package/esm/components/icons/Group.d.ts +0 -6
  764. package/esm/components/icons/Group.js +0 -4
  765. package/esm/components/icons/Group.js.map +0 -1
  766. package/esm/components/icons/History.d.ts +0 -7
  767. package/esm/components/icons/History.js +0 -4
  768. package/esm/components/icons/History.js.map +0 -1
  769. package/esm/components/icons/Image.d.ts +0 -4
  770. package/esm/components/icons/Image.js +0 -5
  771. package/esm/components/icons/Image.js.map +0 -1
  772. package/esm/components/icons/Info.d.ts +0 -6
  773. package/esm/components/icons/Info.js +0 -4
  774. package/esm/components/icons/Info.js.map +0 -1
  775. package/esm/components/icons/Link.d.ts +0 -6
  776. package/esm/components/icons/Link.js +0 -4
  777. package/esm/components/icons/Link.js.map +0 -1
  778. package/esm/components/icons/Linkedin.d.ts +0 -6
  779. package/esm/components/icons/Linkedin.js +0 -4
  780. package/esm/components/icons/Linkedin.js.map +0 -1
  781. package/esm/components/icons/Loading.d.ts +0 -7
  782. package/esm/components/icons/Loading.js +0 -7
  783. package/esm/components/icons/Loading.js.map +0 -1
  784. package/esm/components/icons/Logout.d.ts +0 -6
  785. package/esm/components/icons/Logout.js +0 -4
  786. package/esm/components/icons/Logout.js.map +0 -1
  787. package/esm/components/icons/Mail.d.ts +0 -6
  788. package/esm/components/icons/Mail.js +0 -4
  789. package/esm/components/icons/Mail.js.map +0 -1
  790. package/esm/components/icons/MapMarker.d.ts +0 -6
  791. package/esm/components/icons/MapMarker.js +0 -4
  792. package/esm/components/icons/MapMarker.js.map +0 -1
  793. package/esm/components/icons/MenuHorizontal.d.ts +0 -7
  794. package/esm/components/icons/MenuHorizontal.js +0 -4
  795. package/esm/components/icons/MenuHorizontal.js.map +0 -1
  796. package/esm/components/icons/MenuVertical.d.ts +0 -7
  797. package/esm/components/icons/MenuVertical.js +0 -4
  798. package/esm/components/icons/MenuVertical.js.map +0 -1
  799. package/esm/components/icons/Message.d.ts +0 -6
  800. package/esm/components/icons/Message.js +0 -4
  801. package/esm/components/icons/Message.js.map +0 -1
  802. package/esm/components/icons/Microphone.d.ts +0 -6
  803. package/esm/components/icons/Microphone.js +0 -4
  804. package/esm/components/icons/Microphone.js.map +0 -1
  805. package/esm/components/icons/Minus.d.ts +0 -6
  806. package/esm/components/icons/Minus.js +0 -4
  807. package/esm/components/icons/Minus.js.map +0 -1
  808. package/esm/components/icons/MinusCircle.d.ts +0 -6
  809. package/esm/components/icons/MinusCircle.js +0 -4
  810. package/esm/components/icons/MinusCircle.js.map +0 -1
  811. package/esm/components/icons/PaperClip.d.ts +0 -6
  812. package/esm/components/icons/PaperClip.js +0 -4
  813. package/esm/components/icons/PaperClip.js.map +0 -1
  814. package/esm/components/icons/Picture.d.ts +0 -6
  815. package/esm/components/icons/Picture.js +0 -4
  816. package/esm/components/icons/Picture.js.map +0 -1
  817. package/esm/components/icons/Plus.d.ts +0 -6
  818. package/esm/components/icons/Plus.js +0 -4
  819. package/esm/components/icons/Plus.js.map +0 -1
  820. package/esm/components/icons/Preview.d.ts +0 -4
  821. package/esm/components/icons/Preview.js +0 -5
  822. package/esm/components/icons/Preview.js.map +0 -1
  823. package/esm/components/icons/Print.d.ts +0 -6
  824. package/esm/components/icons/Print.js +0 -4
  825. package/esm/components/icons/Print.js.map +0 -1
  826. package/esm/components/icons/QuestionHelp.d.ts +0 -6
  827. package/esm/components/icons/QuestionHelp.js +0 -4
  828. package/esm/components/icons/QuestionHelp.js.map +0 -1
  829. package/esm/components/icons/Refresh.d.ts +0 -6
  830. package/esm/components/icons/Refresh.js +0 -4
  831. package/esm/components/icons/Refresh.js.map +0 -1
  832. package/esm/components/icons/SelectIcon.d.ts +0 -6
  833. package/esm/components/icons/SelectIcon.js +0 -4
  834. package/esm/components/icons/SelectIcon.js.map +0 -1
  835. package/esm/components/icons/Send.d.ts +0 -6
  836. package/esm/components/icons/Send.js +0 -4
  837. package/esm/components/icons/Send.js.map +0 -1
  838. package/esm/components/icons/Setting.d.ts +0 -6
  839. package/esm/components/icons/Setting.js +0 -4
  840. package/esm/components/icons/Setting.js.map +0 -1
  841. package/esm/components/icons/Share.d.ts +0 -6
  842. package/esm/components/icons/Share.js +0 -4
  843. package/esm/components/icons/Share.js.map +0 -1
  844. package/esm/components/icons/Sound.d.ts +0 -6
  845. package/esm/components/icons/Sound.js +0 -4
  846. package/esm/components/icons/Sound.js.map +0 -1
  847. package/esm/components/icons/SoundDeactivated.d.ts +0 -6
  848. package/esm/components/icons/SoundDeactivated.js +0 -4
  849. package/esm/components/icons/SoundDeactivated.js.map +0 -1
  850. package/esm/components/icons/Telegram.d.ts +0 -6
  851. package/esm/components/icons/Telegram.js +0 -4
  852. package/esm/components/icons/Telegram.js.map +0 -1
  853. package/esm/components/icons/ThumbDown.d.ts +0 -6
  854. package/esm/components/icons/ThumbDown.js +0 -4
  855. package/esm/components/icons/ThumbDown.js.map +0 -1
  856. package/esm/components/icons/ThumbUp.d.ts +0 -6
  857. package/esm/components/icons/ThumbUp.js +0 -4
  858. package/esm/components/icons/ThumbUp.js.map +0 -1
  859. package/esm/components/icons/Translation.d.ts +0 -6
  860. package/esm/components/icons/Translation.js +0 -4
  861. package/esm/components/icons/Translation.js.map +0 -1
  862. package/esm/components/icons/Twitter.d.ts +0 -6
  863. package/esm/components/icons/Twitter.js +0 -4
  864. package/esm/components/icons/Twitter.js.map +0 -1
  865. package/esm/components/icons/Upload.d.ts +0 -4
  866. package/esm/components/icons/Upload.js +0 -5
  867. package/esm/components/icons/Upload.js.map +0 -1
  868. package/esm/components/icons/User.d.ts +0 -6
  869. package/esm/components/icons/User.js +0 -4
  870. package/esm/components/icons/User.js.map +0 -1
  871. package/esm/components/icons/Warning.d.ts +0 -6
  872. package/esm/components/icons/Warning.js +0 -4
  873. package/esm/components/icons/Warning.js.map +0 -1
  874. package/esm/components/icons/WhatsApp.d.ts +0 -6
  875. package/esm/components/icons/WhatsApp.js +0 -4
  876. package/esm/components/icons/WhatsApp.js.map +0 -1
  877. package/esm/components/icons/loading.css +0 -14
  878. package/esm/components/layouts/WebsiteAssistant.d.ts +0 -4
  879. package/esm/components/layouts/WebsiteAssistant.js +0 -35
  880. package/esm/components/layouts/WebsiteAssistant.js.map +0 -1
  881. package/esm/components/layouts/website-assistant.css +0 -676
  882. package/esm/components/ui/Alert.css +0 -93
  883. package/esm/components/ui/Alert.d.ts +0 -18
  884. package/esm/components/ui/Alert.js +0 -39
  885. package/esm/components/ui/Alert.js.map +0 -1
  886. package/esm/components/ui/Button.css +0 -167
  887. package/esm/components/ui/Button.d.ts +0 -27
  888. package/esm/components/ui/Button.js +0 -20
  889. package/esm/components/ui/Button.js.map +0 -1
  890. package/esm/components/ui/Card.css +0 -65
  891. package/esm/components/ui/Card.d.ts +0 -13
  892. package/esm/components/ui/Card.js +0 -11
  893. package/esm/components/ui/Card.js.map +0 -1
  894. package/esm/components/ui/Checkbox.css +0 -116
  895. package/esm/components/ui/Checkbox.d.ts +0 -11
  896. package/esm/components/ui/Checkbox.js +0 -17
  897. package/esm/components/ui/Checkbox.js.map +0 -1
  898. package/esm/components/ui/ConfirmDialog.css +0 -42
  899. package/esm/components/ui/ConfirmDialog.d.ts +0 -11
  900. package/esm/components/ui/ConfirmDialog.js +0 -9
  901. package/esm/components/ui/ConfirmDialog.js.map +0 -1
  902. package/esm/components/ui/Details.css +0 -66
  903. package/esm/components/ui/Drawer.css +0 -270
  904. package/esm/components/ui/Drawer.d.ts +0 -46
  905. package/esm/components/ui/Drawer.js +0 -57
  906. package/esm/components/ui/Drawer.js.map +0 -1
  907. package/esm/components/ui/Dropdown.css +0 -173
  908. package/esm/components/ui/Dropdown.d.ts +0 -11
  909. package/esm/components/ui/Dropdown.js +0 -30
  910. package/esm/components/ui/Dropdown.js.map +0 -1
  911. package/esm/components/ui/Expandable.css +0 -15
  912. package/esm/components/ui/Expandable.d.ts +0 -15
  913. package/esm/components/ui/Expandable.js +0 -56
  914. package/esm/components/ui/Expandable.js.map +0 -1
  915. package/esm/components/ui/Modal.css +0 -98
  916. package/esm/components/ui/Modal.d.ts +0 -16
  917. package/esm/components/ui/Modal.js +0 -21
  918. package/esm/components/ui/Modal.js.map +0 -1
  919. package/esm/components/ui/Select.css +0 -138
  920. package/esm/components/ui/Select.d.ts +0 -17
  921. package/esm/components/ui/Select.js +0 -14
  922. package/esm/components/ui/Select.js.map +0 -1
  923. package/esm/components/ui/Slider.css +0 -192
  924. package/esm/components/ui/Slider.d.ts +0 -12
  925. package/esm/components/ui/Slider.js +0 -75
  926. package/esm/components/ui/Slider.js.map +0 -1
  927. package/esm/components/ui/Spin.css +0 -31
  928. package/esm/components/ui/Spin.d.ts +0 -9
  929. package/esm/components/ui/Spin.js +0 -9
  930. package/esm/components/ui/Spin.js.map +0 -1
  931. package/esm/components/ui/Table.css +0 -132
  932. package/esm/components/ui/Tooltip.css +0 -171
  933. package/esm/components/ui/Tooltip.d.ts +0 -11
  934. package/esm/components/ui/Tooltip.js +0 -87
  935. package/esm/components/ui/Tooltip.js.map +0 -1
@@ -27,7 +27,14 @@ function FullbodyAvatar({ url, sex, eyeBlink, updateCurrentViseme, avatarHeight
27
27
  });
28
28
  return found;
29
29
  }, [scene]);
30
- const mergedAnimations = (0, react_1.useMemo)(() => needsAdditionalAnimations ? [...baseAnimations, ...additionalAnimations] : baseAnimations, [baseAnimations, additionalAnimations, needsAdditionalAnimations]);
30
+ const mergedAnimations = (0, react_1.useMemo)(() => {
31
+ const clips = needsAdditionalAnimations
32
+ ? [...baseAnimations, ...additionalAnimations]
33
+ : baseAnimations;
34
+ if (sex !== 'MALE')
35
+ return clips;
36
+ return clips.filter(clip => !constants_1.MALE_EXCLUDED_ANIMATIONS.has(clip.name));
37
+ }, [baseAnimations, additionalAnimations, needsAdditionalAnimations, sex]);
31
38
  const { actions } = (0, drei_1.useAnimations)(mergedAnimations, scene);
32
39
  const morphTargetControllerRef = (0, react_1.useRef)(null);
33
40
  const positionControllerRef = (0, react_1.useRef)(null);
@@ -1 +1 @@
1
- {"version":3,"file":"fullbodyAvatar.js","sourceRoot":"","sources":["../../../../../../../src/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.tsx"],"names":[],"mappings":";;AAgCA,wCAuSC;;;AAvUD,iCAA0E;AAC1E,iCAA+E;AAC/E,4CAA2D;AAC3D,8CAA8C;AAC9C,gFAA6E;AAC7E,sFAAmF;AACnF,kEAA+D;AAC/D,+CAKyB;AACzB,uFAAuD;AAmBvD,SAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,GAAG,EACH,QAAQ,EACR,mBAAmB,EACnB,YAAY,GAAG,EAAE,EACjB,WAAW,GAAG,CAAC,EACf,eAAe,EACf,YAAY,EACZ,OAAO,EACP,cAAc,GACM;IAEpB,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,IAAA,cAAO,EAAC,GAAG,CAAC,CAAC;IAG3D,MAAM,EAAE,UAAU,EAAE,oBAAoB,EAAE,GAAG,IAAA,cAAO,EAAC,0BAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IAG1E,MAAM,yBAAyB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC7C,IAAI,KAAK,GAAG,KAAK,CAAC;QAClB,KAAK,CAAC,QAAQ,CAAC,CAAC,MAAgB,EAAE,EAAE;YAClC,IACE,MAAM,YAAY,mBAAW;gBAC7B,CAAC,MAAM,CAAC,IAAI,KAAK,YAAY;oBAC3B,MAAM,CAAC,IAAI,KAAK,eAAe;oBAC/B,MAAM,CAAC,IAAI,KAAK,oBAAoB,CAAC,EACvC,CAAC;gBACD,KAAK,GAAG,IAAI,CAAC;YACf,CAAC;QACH,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,C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CAAC,CAAC,CAAC,CAAC;gBAE3D,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;gBAC9C,yBAAyB,CAAC,OAAO,GAAG,WAAW,CAAC;YAClD,CAAC;QACH,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IAGlE,IAAA,gBAAQ,EAAC,aAAa,CAAC,CAAC;IAGxB,MAAM,QAAQ,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;;QAC5B,OAAO,CACL,CAAA,MAAA,qBAAqB,CAAC,OAAO,0CAAE,WAAW,EAAE,KAAI,2BAAe,CAAC,KAAK,EAAE,CACxE,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,6DACE,uBAAC,uBAAa,IAAC,QAAQ,EAAE,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,GAAI,EAC1E,kCAAO,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,2BAAe,YAClD,sCAAW,MAAM,EAAE,KAAK,GAAI,GACtB,IACP,CACJ,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"fullbodyAvatar.js","sourceRoot":"","sources":["../../../../../../../src/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.tsx"],"names":[],"mappings":";;AAiCA,wCA6SC;;;AA9UD,iCAA0E;AAC1E,iCAA+E;AAC/E,4CAA2D;AAC3D,8CAA8C;AAC9C,gFAA6E;AAC7E,sFAAmF;AACnF,kEAA+D;AAC/D,+CAMyB;AACzB,uFAAuD;AAmBvD,SAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,GAAG,EACH,QAAQ,EACR,mBAAmB,EACnB,YAAY,GAAG,EAAE,EACjB,WAAW,GAAG,CAAC,EACf,eAAe,EACf,YAAY,EACZ,OAAO,EACP,cAAc,GACM;IAEpB,MAAM,EAAE,KA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B,OAAO,CACL,CAAA,MAAA,qBAAqB,CAAC,OAAO,0CAAE,WAAW,EAAE,KAAI,2BAAe,CAAC,KAAK,EAAE,CACxE,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,6DACE,uBAAC,uBAAa,IAAC,QAAQ,EAAE,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,GAAI,EAC1E,kCAAO,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,2BAAe,YAClD,sCAAW,MAAM,EAAE,KAAK,GAAI,GACtB,IACP,CACJ,CAAC;AACJ,CAAC"}
@@ -81,7 +81,7 @@ class MorphTargetController {
81
81
  if (currentEmotionKeys.has(key)) {
82
82
  const targetEmotionValue = emotionMorphTargets[key];
83
83
  const currentEmotionValue = this.currentEmotionValues[key] || 0;
84
- const newEmotionValue = three_1.MathUtils.lerp(currentEmotionValue, targetEmotionValue * 1.5, constants_1.EMOTION_SMOOTHING);
84
+ const newEmotionValue = three_1.MathUtils.lerp(currentEmotionValue, targetEmotionValue * constants_1.EMOTION_INTENSITY, constants_1.EMOTION_SMOOTHING);
85
85
  this.currentEmotionValues[key] = newEmotionValue;
86
86
  targetValue += newEmotionValue;
87
87
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MorphTargetController.js","sourceRoot":"","sources":["../../../../../../../src/components/Avatar/AvatarView/AvatarComponent/components/controllers/MorphTargetController.ts"],"names":[],"mappings":";;;AACA,iCAAkC;AAClC,+CAQyB;AAKzB,MAAa,qBAAqB;IAoBhC,YACE,QAAqB,EACrB,cAA8B,EAC9B,gBAAiC;QArB3B,yBAAoB,GAA2B,EAAE,CAAC;QAClD,wBAAmB,GAAgB,IAAI,GAAG,EAAE,CAAC;QAC7C,UAAK,GAAY,KAAK,CAAC;QAGvB,mBAAc,GACpB,8CAAmD,CAAC;QAG9C,qBAAgB,GACtB,+CAAqD,CAAC;QAatD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAGzB,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Aa;gBACtB,WAAW;oBACX,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,wBAAY,CAAC,WAAW,GAAG,wBAAY,CAAC,WAAW,CAAC;oBACrE,wBAAY,CAAC,WAAW,CAAC;QAC7B,CAAC;QAGD,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC;YAC1B,MAAM,aAAa,GACjB,CAAC,WAAW,GAAG,UAAU,CAAC,cAAc,CAAC,GAAG,wBAAY,CAAC,aAAa,CAAC;YAGzE,IAAI,aAAa,IAAI,GAAG,EAAE,CAAC;gBACzB,UAAU,GAAG,aAAa,GAAG,CAAC,CAAC;YACjC,CAAC;iBAEI,IAAI,aAAa,IAAI,CAAC,EAAE,CAAC;gBAC5B,UAAU,GAAG,CAAC,GAAG,aAAa,GAAG,CAAC,CAAC;YACrC,CAAC;iBAEI,CAAC;gBACJ,UAAU,CAAC,UAAU,GAAG,KAAK,CAAC;gBAC9B,UAAU,GAAG,CAAC,CAAC;YACjB,CAAC;QACH,CAAC;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AA5RD,sDA4RC"}
1
+ {"version":3,"file":"MorphTargetController.js","sourceRoot":"","sources":["../../../../../../../src/components/Avatar/AvatarView/AvatarComponent/components/controllers/MorphTargetController.ts"],"names":[],"mappings":";;;AACA,iCAAkC;AAClC,+CASyB;AAKzB,MAAa,qBAAqB;IAoBhC,YACE,QAAqB,EACrB,cAA8B,EAC9B,gBAAiC;QArB3B,yBAAoB,GAA2B,EAAE,CAAC;QAClD,wBAAmB,GAAgB,IAAI,GAAG,EAAE,CAAC;QAC7C,UAAK,GAAY,KAAK,CAAC;QAGvB,mBAAc,GACpB,8CAAmD,CAAC;QAG9C,qBAAgB,GACtB,+CAAqD,CAAC;QAatD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAGzB,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,KAAK,YAAY,CAAC;QAG5C,IAAI,cAAc,EAAE,CAAC;YACnB,IAAI,C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CAAC;oBACrE,wBAAY,CAAC,WAAW,CAAC;QAC7B,CAAC;QAGD,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC;YAC1B,MAAM,aAAa,GACjB,CAAC,WAAW,GAAG,UAAU,CAAC,cAAc,CAAC,GAAG,wBAAY,CAAC,aAAa,CAAC;YAGzE,IAAI,aAAa,IAAI,GAAG,EAAE,CAAC;gBACzB,UAAU,GAAG,aAAa,GAAG,CAAC,CAAC;YACjC,CAAC;iBAEI,IAAI,aAAa,IAAI,CAAC,EAAE,CAAC;gBAC5B,UAAU,GAAG,CAAC,GAAG,aAAa,GAAG,CAAC,CAAC;YACrC,CAAC;iBAEI,CAAC;gBACJ,UAAU,CAAC,UAAU,GAAG,KAAK,CAAC;gBAC9B,UAAU,GAAG,CAAC,CAAC;YACjB,CAAC;QACH,CAAC;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AA5RD,sDA4RC"}
@@ -24,6 +24,7 @@ export declare const ANIMATION_URLS: {
24
24
  MALE: string;
25
25
  FEMALE: string;
26
26
  };
27
+ export declare const MALE_EXCLUDED_ANIMATIONS: Set<string>;
27
28
  export declare const BLINK_CONFIG: {
28
29
  minInterval: number;
29
30
  maxInterval: number;
@@ -32,4 +33,5 @@ export declare const BLINK_CONFIG: {
32
33
  export declare const DEFAULT_CONFIG: AnimationConfig;
33
34
  export declare const EMOTION_SMOOTHING = 0.3;
34
35
  export declare const VISEME_SMOOTHING = 0.5;
36
+ export declare const EMOTION_INTENSITY = 2.5;
35
37
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VISEME_SMOOTHING = exports.EMOTION_SMOOTHING = exports.DEFAULT_CONFIG = exports.BLINK_CONFIG = exports.ANIMATION_URLS = exports.MAPPING_BLEND_SHAPE_TO_EMOTION_RPM = exports.MAPPING_EMOTIONS_ITALIAN_TO_ENGLISH = exports.MAX_IDLE_LOOPS_DEFAULT = exports.SCALE_LERP_FACTOR = exports.AVATAR_POSITION_ZOOMED = exports.AVATAR_ROTATION = exports.AVATAR_POSITION = void 0;
3
+ exports.EMOTION_INTENSITY = exports.VISEME_SMOOTHING = exports.EMOTION_SMOOTHING = exports.DEFAULT_CONFIG = exports.BLINK_CONFIG = exports.MALE_EXCLUDED_ANIMATIONS = exports.ANIMATION_URLS = exports.MAPPING_BLEND_SHAPE_TO_EMOTION_RPM = exports.MAPPING_EMOTIONS_ITALIAN_TO_ENGLISH = exports.MAX_IDLE_LOOPS_DEFAULT = exports.SCALE_LERP_FACTOR = exports.AVATAR_POSITION_ZOOMED = exports.AVATAR_ROTATION = exports.AVATAR_POSITION = void 0;
4
4
  const three_1 = require("three");
5
5
  exports.AVATAR_POSITION = new three_1.Vector3(0, -1, 0);
6
6
  exports.AVATAR_ROTATION = new three_1.Euler(0.175, 0, 0);
@@ -37,7 +37,8 @@ exports.MAPPING_BLEND_SHAPE_TO_EMOTION_RPM = [
37
37
  'browDownRight': 0.5,
38
38
  'browOuterUpLeft': 0.5,
39
39
  'browOuterUpRight': 0.5,
40
- 'mouthSmile': -0.2,
40
+ 'mouthSmileLeft': -0.2,
41
+ 'mouthSmileRight': -0.2,
41
42
  },
42
43
  },
43
44
  {
@@ -56,7 +57,8 @@ exports.MAPPING_BLEND_SHAPE_TO_EMOTION_RPM = [
56
57
  'browDownRight': -0.5,
57
58
  'eyeSquintLeft': 0.5,
58
59
  'eyeSquintRight': 0.5,
59
- 'mouthSmile': -0.6,
60
+ 'mouthSmileLeft': -0.6,
61
+ 'mouthSmileRight': -0.6,
60
62
  },
61
63
  },
62
64
  {
@@ -67,7 +69,8 @@ exports.MAPPING_BLEND_SHAPE_TO_EMOTION_RPM = [
67
69
  'browOuterUpRight': 0.5,
68
70
  'eyeWideLeft': 0.5,
69
71
  'eyeWideRight': 0.5,
70
- 'mouthSmile': 0.5,
72
+ 'mouthSmileLeft': 0.5,
73
+ 'mouthSmileRight': 0.5,
71
74
  },
72
75
  },
73
76
  {
@@ -76,7 +79,8 @@ exports.MAPPING_BLEND_SHAPE_TO_EMOTION_RPM = [
76
79
  'browDownLeft': 0.5,
77
80
  'browDownRight': 0.5,
78
81
  'browInnerUp': 0.5,
79
- 'mouthSmile': 0.5,
82
+ 'mouthSmileLeft': 0.5,
83
+ 'mouthSmileRight': 0.5,
80
84
  },
81
85
  },
82
86
  ];
@@ -84,6 +88,10 @@ exports.ANIMATION_URLS = {
84
88
  MALE: 'https://assets.memori.ai/api/v2/asset/2c5e88a4-cf62-408b-9ef0-518b099dfcb2.glb',
85
89
  FEMALE: 'https://assets.memori.ai/api/v2/asset/2adc934b-24b2-45bd-94ad-ffec58d3cb32.glb',
86
90
  };
91
+ exports.MALE_EXCLUDED_ANIMATIONS = new Set([
92
+ 'Idle',
93
+ 'Idle2'
94
+ ]);
87
95
  exports.BLINK_CONFIG = {
88
96
  minInterval: 1000,
89
97
  maxInterval: 5000,
@@ -97,4 +105,5 @@ exports.DEFAULT_CONFIG = {
97
105
  };
98
106
  exports.EMOTION_SMOOTHING = 0.3;
99
107
  exports.VISEME_SMOOTHING = 0.5;
108
+ exports.EMOTION_INTENSITY = 2.5;
100
109
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/components/Avatar/AvatarView/AvatarComponent/constants.ts"],"names":[],"mappings":";;;AAAA,iCAAuC;AAI1B,QAAA,eAAe,GAAG,IAAI,eAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACxC,QAAA,eAAe,GAAG,IAAI,aAAK,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACzC,QAAA,sBAAsB,GAAG,IAAI,eAAO,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAGlD,QAAA,iBAAiB,GAAG,GAAG,CAAC;AAGxB,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAgB3B,QAAA,mCA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AAa,EAAE,GAAG;YAClB,cAAc,EAAE,GAAG;YACnB,YAAY,EAAE,GAAG;SAClB;KACF;IACD;QACE,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;QAC7C,WAAW,EAAE;YACX,cAAc,EAAE,GAAG;YACnB,eAAe,EAAE,GAAG;YACpB,aAAa,EAAE,GAAG;YAClB,YAAY,EAAE,GAAG;SAClB;KACF;CACF,CAAC;AAGW,QAAA,cAAc,GAAG;IAC5B,IAAI,EAAE,gFAAgF;IACtF,MAAM,EACJ,gFAAgF;CACnF,CAAC;AAGW,QAAA,YAAY,GAAG;IAC1B,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,GAAG;CACnB,CAAC;AAGW,QAAA,cAAc,GAAoB;IAC7C,cAAc,EAAE,GAAG;IACnB,eAAe,EAAE,GAAG;IACpB,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,GAAG;CACf,CAAC;AAGW,QAAA,iBAAiB,GAAG,GAAG,CAAC;AACxB,QAAA,gBAAgB,GAAG,GAAG,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/components/Avatar/AvatarView/AvatarComponent/constants.ts"],"names":[],"mappings":";;;AAAA,iCAAuC;AAI1B,QAAA,eAAe,GAAG,IAAI,eAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACxC,QAAA,eAAe,GAAG,IAAI,aAAK,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACzC,QAAA,sBAAsB,GAAG,IAAI,eAAO,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAGlD,QAAA,iBAAiB,GAAG,GAAG,CAAC;AAGxB,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAgB3B,QAAA,mCAAmC,GAAmB;IACjE;QACE,OAAO,EAAE,OAAO;QAChB,OAAO,EA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,GAAG;YACvB,aAAa,EAAE,GAAG;YAClB,cAAc,EAAE,GAAG;YACnB,gBAAgB,EAAE,GAAG;YACrB,iBAAiB,EAAE,GAAG;SACvB;KACF;IACD;QACE,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;QAC7C,WAAW,EAAE;YACX,cAAc,EAAE,GAAG;YACnB,eAAe,EAAE,GAAG;YACpB,aAAa,EAAE,GAAG;YAClB,gBAAgB,EAAE,GAAG;YACrB,iBAAiB,EAAE,GAAG;SACvB;KACF;CACF,CAAC;AAGW,QAAA,cAAc,GAAG;IAC5B,IAAI,EAAE,gFAAgF;IACtF,MAAM,EACJ,gFAAgF;CACnF,CAAC;AAGW,QAAA,wBAAwB,GAAG,IAAI,GAAG,CAAC;IAC9C,MAAM;IACN,OAAO;CACR,CAAC,CAAC;AAGU,QAAA,YAAY,GAAG;IAC1B,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,GAAG;CACnB,CAAC;AAGW,QAAA,cAAc,GAAoB;IAC7C,cAAc,EAAE,GAAG;IACnB,eAAe,EAAE,GAAG;IACpB,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,GAAG;CACf,CAAC;AAGW,QAAA,iBAAiB,GAAG,GAAG,CAAC;AACxB,QAAA,gBAAgB,GAAG,GAAG,CAAC;AAEvB,QAAA,iBAAiB,GAAG,GAAG,CAAC"}
@@ -6,6 +6,25 @@
6
6
  flex-direction: column;
7
7
  }
8
8
 
9
+ /**
10
+ * Shared conversation axis for CHAT + FULLPAGE:
11
+ * message list, empty/start state and input share one max-width and inline padding.
12
+ * Children must not set their own column max-width / margin-inline.
13
+ */
14
+ .memori-conversation-column {
15
+ display: flex;
16
+ width: 100%;
17
+ min-width: 0;
18
+ max-width: var(--memori-conversation-max-width, 48rem);
19
+ height: 100%;
20
+ min-height: 0;
21
+ box-sizing: border-box;
22
+ flex: 1 1 auto;
23
+ flex-direction: column;
24
+ margin-inline: auto;
25
+ padding-inline: var(--memori-conversation-inline-padding, var(--memori-spacing-md));
26
+ }
27
+
9
28
  @media (max-width: 768px) {
10
29
  .memori-chat--wrapper.chat-focused {
11
30
  padding-bottom: 0;
@@ -18,54 +37,123 @@
18
37
  width: 100%;
19
38
  height: calc(100% - 50px);
20
39
  flex: 1;
21
- border-radius: var(--memori-radius-box);
40
+ border-radius: var(--memori-radius-box) var(--memori-radius-box) 0 0;
22
41
  margin-bottom: 1rem;
23
42
  background-color: var(--memori-secondary-background);
24
43
  }
25
44
 
45
+ .memori-chat--history:has(.memori-chat--content--has-global-background) {
46
+ background-color: transparent;
47
+ }
48
+
26
49
  /* Adjust chat history when textarea is expanded */
27
50
  .memori-chat-wrapper--expanded .memori-chat--history {
28
51
  margin-bottom: var(--memori-spacing-sm);
29
52
  }
30
53
 
31
- /* Solo widget layout CHAT: area messaggi a card */
54
+ .memori-chat--history.memori-chat--history-touch {
55
+ height: 80% !important;
56
+ padding: 0;
57
+ }
58
+
59
+ .memori-chat--content {
60
+ position: relative;
61
+ display: flex;
62
+ height: 100%;
63
+ flex: 1;
64
+ flex-direction: column;
65
+ /* background-color: var(--memori-secondary-background); */
66
+ /* padding: 2rem var(--memori-spacing-sm); */
67
+ /* mask-image: linear-gradient(transparent, black 5%, black 95%, transparent 100%); */
68
+ overflow-y: auto;
69
+ scroll-behavior: smooth;
70
+ }
71
+
72
+ /* Conversation-column overrides sit between base and layout-scoped rules. */
73
+ .memori-conversation-column .memori-chat--wrapper,
74
+ .memori-conversation-column .memori-chat--history,
75
+ .memori-conversation-column .memori-chat--content,
76
+ .memori-conversation-column .memori-chat-inputs-wrapper,
77
+ .memori-conversation-column .memori-chat-inputs,
78
+ .memori-conversation-column .memori-chat-inputs--ai-note,
79
+ .memori-conversation-column .memori--start-panel,
80
+ .memori-conversation-column .memori-chat-layout--body,
81
+ .memori-conversation-column .memori-chat-layout--start-shell,
82
+ .memori-conversation-column .memori-chat-layout--start-panel-wrap {
83
+ width: 100%;
84
+ max-width: none;
85
+ margin-inline: 0;
86
+ }
87
+
88
+ .memori-conversation-column .memori-chat--content {
89
+ padding-inline: 0;
90
+ }
91
+
92
+ .memori-conversation-column .memori-chat-inputs-wrapper {
93
+ padding-inline: 0;
94
+ }
95
+
96
+ /* Solo widget layout CHAT: area messaggi a card — top radius only;
97
+ bottom radius lives on the input bar so the panel reads as one unit */
32
98
  .memori-widget.memori-layout-chat .memori-chat-layout--controls .memori-chat--history {
99
+ height: 100%;
33
100
  min-height: 0;
34
101
  padding: 0;
35
- border-radius: 12px;
36
- margin: 0.5rem 0 1rem;
37
- background-color: transparent;
102
+ border-radius: 0;
103
+ margin: 0;
104
+ background-color: var(--memori-secondary-background);
38
105
  box-shadow: none;
39
106
  }
40
107
 
108
+ .memori-widget.memori-layout-chat
109
+ .memori-chat-layout--controls
110
+ .memori-chat--history:has(.memori-chat--content--has-global-background) {
111
+ background-color: transparent;
112
+ }
113
+
41
114
  .memori-widget.memori-layout-chat .memori-widget {
42
115
  padding: 0;
43
116
  }
44
117
 
45
- .memori-widget.memori-layout-chat .memori-chat--bubble {
46
- background-color: var(--memori-secondary-background);
118
+ .memori-widget.memori-layout-chat .memori-chat--bubble:not(.memori-chat--user-bubble) {
119
+ border: none;
120
+ /* background-color: var(--memori-secondary-background); */
47
121
  }
48
122
 
49
123
  .memori-widget.memori-layout-chat .memori-media-item--document {
50
124
  background-color: var(--memori-secondary-background);
51
125
  }
52
126
 
53
- .memori-chat--history.memori-chat--history-touch {
54
- height: 80% !important;
55
- padding: 0;
127
+ .memori-chat--content--has-global-background {
128
+ background-color: transparent;
56
129
  }
57
130
 
58
- .memori-chat--content {
131
+ /* Global background image lives on the chat history area (not the whole layout),
132
+ which is the messages viewport and does not scroll: the image therefore stays
133
+ put while messages scroll over it. Pseudo-element keeps blur off the messages. */
134
+ .memori-chat--history--has-global-background {
135
+ isolation: isolate;
136
+ }
137
+
138
+ .memori-chat--history--has-global-background::before {
139
+ position: absolute;
140
+ z-index: 0;
141
+ top: 0;
142
+ right: 0;
143
+ bottom: 0;
144
+ left: 0;
145
+ background-color: #eee;
146
+ background-image: var(--memori-chat-global-background);
147
+ background-position: center center;
148
+ background-repeat: no-repeat;
149
+ background-size: cover;
150
+ content: '';
151
+ pointer-events: none;
152
+ }
153
+
154
+ .memori-chat--history--has-global-background > * {
59
155
  position: relative;
60
- display: flex;
61
- height: 100%;
62
- flex: 1;
63
- flex-direction: column;
64
- /* background-color: var(--memori-secondary-background); */
65
- /* padding: 2rem var(--memori-spacing-sm); */
66
- /* mask-image: linear-gradient(transparent, black 5%, black 95%, transparent 100%); */
67
- overflow-y: auto;
68
- scroll-behavior: smooth;
156
+ z-index: 1;
69
157
  }
70
158
 
71
159
  .memori-chat--content.memori-chat--content-touch {
@@ -59,6 +59,9 @@ export interface Props {
59
59
  showFunctionCache?: boolean;
60
60
  maxTotalMessagePayload?: number;
61
61
  maxTextareaCharacters?: number;
62
+ globalBackground?: string;
63
+ footerBrand?: React.ReactNode;
64
+ showAiGeneratedNote?: boolean;
62
65
  }
63
66
  declare const _default: React.NamedExoticComponent<Props>;
64
67
  export default _default;
@@ -14,6 +14,7 @@ const constants_1 = require("../../helpers/constants");
14
14
  const lucide_react_1 = require("lucide-react");
15
15
  const react_i18next_1 = require("react-i18next");
16
16
  const ui_1 = require("@memori.ai/ui");
17
+ const widgetSurfaceContext_1 = require("../../context/widgetSurfaceContext");
17
18
  const constants_2 = require("../../helpers/constants");
18
19
  const llmUsage_1 = require("../../helpers/llmUsage");
19
20
  const CODE_MIME_TYPES = [
@@ -29,13 +30,14 @@ const CODE_MIME_TYPES = [
29
30
  'text/x-ruby',
30
31
  'text/x-sql',
31
32
  ];
32
- const Chat = ({ memori, tenant, sessionID, baseUrl, apiUrl, client, translateTo, memoriTyping, typingText, showTypingText = false, history = [], authToken, dialogState, simulateUserPrompt, showDates = false, showContextPerLine = false, showAIicon = true, showWhyThisAnswer = true, showCopyButton = true, showTranslationOriginal = false, showReasoning = false, showMessageConsumption = false, preview = false, instruct = false, showInputs = true, showMicrophone = false, microphoneMode = 'HOLD_TO_TALK', sendOnEnter, setSendOnEnter, attachmentsMenuOpen, setAttachmentsMenuOpen, userMessage = '', onChangeUserMessage, sendMessage, listening, setEnableFocusChatInput, isPlayingAudio, stopAudio, startListening, stopListening, customMediaRenderer, user, userAvatar, showUpload = false, experts, useMathFormatting = false, isHistoryView = false, isChatlogPanel = false, showFunctionCache = false, maxTotalMessagePayload, maxTextareaCharacters, }) => {
33
+ const Chat = ({ memori, tenant, sessionID, baseUrl, apiUrl, client, translateTo, memoriTyping, typingText, showTypingText = false, history = [], authToken, dialogState, simulateUserPrompt, showDates = false, showContextPerLine = false, showAIicon = true, showWhyThisAnswer = true, showCopyButton = true, showTranslationOriginal = false, showReasoning = false, showMessageConsumption = false, preview = false, instruct = false, showInputs = true, showMicrophone = false, microphoneMode = 'HOLD_TO_TALK', sendOnEnter, setSendOnEnter, attachmentsMenuOpen, setAttachmentsMenuOpen, userMessage = '', onChangeUserMessage, sendMessage, listening, setEnableFocusChatInput, isPlayingAudio, stopAudio, startListening, stopListening, customMediaRenderer, user, userAvatar, showUpload = false, experts, useMathFormatting = false, isHistoryView = false, isChatlogPanel = false, showFunctionCache = false, maxTotalMessagePayload, maxTextareaCharacters, globalBackground, footerBrand, showAiGeneratedNote = true, }) => {
33
34
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
34
35
  const [isTextareaExpanded, setIsTextareaExpanded] = (0, react_1.useState)(false);
35
36
  const [isDragging, setIsDragging] = (0, react_1.useState)(false);
36
37
  const [activeUsageBadge, setActiveUsageBadge] = (0, react_1.useState)(null);
37
38
  const chatWrapperRef = (0, react_1.useRef)(null);
38
39
  const { t } = (0, react_i18next_1.useTranslation)();
40
+ const surfaceEl = (0, widgetSurfaceContext_1.useWidgetSurfaceEl)();
39
41
  const locale = (translateTo || memori.culture || 'it-IT').replace('_', '-');
40
42
  const llmUsageLabels = (0, react_1.useMemo)(() => ({
41
43
  llm: t('chatLogs.llm', { defaultValue: 'LLM' }),
@@ -184,60 +186,66 @@ const Chat = ({ memori, tenant, sessionID, baseUrl, apiUrl, client, translateTo,
184
186
  'memori-chat-wrapper--translate': translateTo,
185
187
  'memori-chat-wrapper--expanded': isTextareaExpanded,
186
188
  'memori-chat-wrapper--dragging': isDragging,
187
- }), id: "chat-wrapper", lang: translateTo === null || translateTo === void 0 ? void 0 : translateTo.toUpperCase(), "data-memori-lang": (_k = (_j = (_h = (_g = memori.culture) === null || _g === void 0 ? void 0 : _g.split('-')) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.toUpperCase()) !== null && _k !== void 0 ? _k : 'EN', children: [isDragging && ((0, jsx_runtime_1.jsxs)("div", { className: "memori-chat--drag-overlay", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.FileText, { className: "memori-chat--drag-overlay-icon" }), (0, jsx_runtime_1.jsx)("span", { className: "memori-chat--drag-overlay-text", children: (_l = t('upload.dragAndDropFiles')) !== null && _l !== void 0 ? _l : 'Drag and drop files here to add them to the chat' })] })), (0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)('memori-chat--history', {
188
- 'memori-chat--history-touch': (0, utils_1.hasTouchscreen)(),
189
- }), children: (0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)('memori-chat--content', {
190
- 'memori-chat--content-touch': (0, utils_1.hasTouchscreen)(),
191
- }), children: [(0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)('memori-chat--cover'), style: {
192
- backgroundImage: `url("${(0, media_1.getResourceUrl)({
193
- type: 'cover',
194
- tenantID: tenant === null || tenant === void 0 ? void 0 : tenant.name,
195
- resourceURI: memori.coverURL,
196
- baseURL: baseUrl,
197
- apiURL: apiUrl,
198
- })}"), url("${(0, media_1.getResourceUrl)({
199
- type: 'cover',
200
- tenantID: tenant === null || tenant === void 0 ? void 0 : tenant.name,
201
- baseURL: baseUrl || 'https://www.aisuru.com',
202
- apiURL: apiUrl,
203
- })}")`,
204
- } }), history.map((message, index) => {
205
- var _a, _b, _c, _d;
206
- return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { style: {
207
- marginBottom: index === history.length - 1 ? '24px' : 0,
208
- }, children: [(0, jsx_runtime_1.jsx)(ChatBubble_1.default, { isFirst: index === 0, message: message, memori: memori, tenant: tenant, client: client, customMediaRenderer: customMediaRenderer, translateTo: translateTo, baseUrl: baseUrl, apiUrl: apiUrl, sessionID: sessionID, simulateUserPrompt: simulateUserPrompt, showAIicon: showAIicon, showWhyThisAnswer: showWhyThisAnswer, codeMimeTypes: CODE_MIME_TYPES, showTranslationOriginal: showTranslationOriginal, showFeedback: index === history.length - 1 &&
209
- !message.fromUser &&
210
- (dialogState === null || dialogState === void 0 ? void 0 : dialogState.acceptsFeedback), user: user, userAvatar: userAvatar, experts: experts, showCopyButton: showCopyButton, useMathFormatting: useMathFormatting, showFunctionCache: showFunctionCache, showReasoning: showReasoning, usageHtml: usageHtmlByIndex[index], isChatlogPanel: isChatlogPanel }, `chatbubble-${index}-${((_a = message.text) === null || _a === void 0 ? void 0 : _a.includes('<document_attachment'))
211
- ? 'has-attachments'
212
- : 'no-attachments'}-${message.timestamp}`), showDates && !!message.timestamp && !message.fromUser && ((0, jsx_runtime_1.jsx)("small", { className: `memori-chat--timestamp ${message.fromUser ? 'text-right' : 'text-left'}`, children: new Intl.DateTimeFormat('it', {
213
- hour: '2-digit',
214
- minute: '2-digit',
215
- second: '2-digit',
216
- }).format(new Date(message.timestamp.endsWith('Z')
217
- ? message.timestamp
218
- : `${message.timestamp}Z`)) })), showContextPerLine &&
219
- !!Object.keys((_b = message.contextVars) !== null && _b !== void 0 ? _b : {}).length && ((0, jsx_runtime_1.jsx)("div", { className: "memori-chat--context-vars", children: Object.keys((_c = message.contextVars) !== null && _c !== void 0 ? _c : {}).map(key => {
220
- var _a, _b, _c;
221
- return ((_a = message.contextVars) === null || _a === void 0 ? void 0 : _a[key]) === '-' ? ((0, jsx_runtime_1.jsx)("div", { className: `memori-chat--context-tag memori-chat--context-tag-canceled`, children: (0, jsx_runtime_1.jsx)("span", { className: "memori-chat--context-tag-text", children: key }) }, key)) : ((_b = message.contextVars) === null || _b === void 0 ? void 0 : _b[key]) === '✔️' ? ((0, jsx_runtime_1.jsx)("div", { className: "memori-chat--context-tag", children: (0, jsx_runtime_1.jsx)("span", { className: "memori-chat--context-tag-text", children: key }) }, key)) : ((0, jsx_runtime_1.jsx)("div", { className: "memori-chat--context-tag", children: (0, jsx_runtime_1.jsxs)("span", { className: "memori-chat--context-tag-text", children: [key, ": ", (_c = message.contextVars) === null || _c === void 0 ? void 0 : _c[key]] }) }, key));
222
- }) }))] }) }, `${index}-${((_d = message.text) === null || _d === void 0 ? void 0 : _d.includes('<document_attachment'))
223
- ? 'has-attachments'
224
- : 'no-attachments'}-${message.timestamp}`));
225
- }), (dialogState === null || dialogState === void 0 ? void 0 : dialogState.hints) &&
226
- dialogState.hints.length > 0 &&
227
- !memoriTyping && ((0, jsx_runtime_1.jsx)(MediaWidget_1.default, { simulateUserPrompt: simulateUserPrompt, hints: dialogState.translatedHints
228
- ? dialogState.translatedHints
229
- : dialogState.hints.map(h => ({
230
- text: h,
231
- originalText: h,
232
- })) })), !!memoriTyping && ((0, jsx_runtime_1.jsx)(Typing_1.default, { useDefaultSentences: showTypingText, lang: translateTo
233
- ? translateTo.toLowerCase() === 'it'
234
- ? 'it'
235
- : 'en'
236
- : ((_p = (_o = (_m = memori.culture) === null || _m === void 0 ? void 0 : _m.split('-')) === null || _o === void 0 ? void 0 : _o[0]) === null || _p === void 0 ? void 0 : _p.toLowerCase()) === 'it'
237
- ? 'it'
238
- : 'en', sentence: typingText, memori: memori, tenant: tenant, baseUrl: baseUrl, apiUrl: apiUrl, experts: experts, sentences: memori.enableBoardOfExperts
239
- ? constants_1.boardOfExpertsLoadingSentences
240
- : undefined }, typingText)), (0, jsx_runtime_1.jsx)("div", { id: "end-messages-ref" })] }) }), showInputs && ((0, jsx_runtime_1.jsx)(ChatInputs_1.default, { userMessage: userMessage, onChangeUserMessage: onChangeUserMessage, dialogState: dialogState, instruct: instruct, authToken: authToken, sendMessage: sendMessage, isTyping: memoriTyping, microphoneMode: microphoneMode, sendOnEnter: sendOnEnter, setSendOnEnter: setSendOnEnter, client: client, sessionID: sessionID, showUpload: showUpload, attachmentsMenuOpen: attachmentsMenuOpen, setAttachmentsMenuOpen: setAttachmentsMenuOpen, onTextareaFocus: onTextareaFocus, onTextareaBlur: onTextareaBlur, onTextareaExpanded: onTextareaExpanded, startListening: startListening, stopListening: stopListening, stopAudio: stopAudio, listening: listening, isPlayingAudio: isPlayingAudio, showMicrophone: showMicrophone, memoriID: memori === null || memori === void 0 ? void 0 : memori.memoriID, maxTotalMessagePayload: maxTotalMessagePayload, maxTextareaCharacters: maxTextareaCharacters, maxDocumentsPerMessage: constants_2.maxDocumentsPerMessage, maxDocumentContentLength: constants_2.maxDocumentContentLength, pasteAsCardLineThreshold: constants_2.pasteAsCardLineThreshold, pasteAsCardCharThreshold: constants_2.pasteAsCardCharThreshold })), (0, jsx_runtime_1.jsxs)(ui_1.Modal, { open: !!activeUsageBadge, onClose: () => setActiveUsageBadge(null), title: (activeUsageBadge === null || activeUsageBadge === void 0 ? void 0 : activeUsageBadge.type)
189
+ }), id: "chat-wrapper", lang: translateTo === null || translateTo === void 0 ? void 0 : translateTo.toUpperCase(), "data-memori-lang": (_k = (_j = (_h = (_g = memori.culture) === null || _g === void 0 ? void 0 : _g.split('-')) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.toUpperCase()) !== null && _k !== void 0 ? _k : 'EN', children: [isDragging && ((0, jsx_runtime_1.jsxs)("div", { className: "memori-chat--drag-overlay", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.FileText, { className: "memori-chat--drag-overlay-icon" }), (0, jsx_runtime_1.jsx)("span", { className: "memori-chat--drag-overlay-text", children: (_l = t('upload.dragAndDropFiles')) !== null && _l !== void 0 ? _l : 'Drag and drop files here to add them to the chat' })] })), (0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)({ 'memori-conversation-column': showInputs }), style: showInputs ? undefined : { display: 'contents' }, children: [(0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)('memori-chat--history', {
190
+ 'memori-chat--history-touch': (0, utils_1.hasTouchscreen)(),
191
+ 'memori-chat--history--has-global-background': !!globalBackground,
192
+ }), style: globalBackground
193
+ ? {
194
+ ['--memori-chat-global-background']: `url(${globalBackground})`,
195
+ }
196
+ : undefined, children: (0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)('memori-chat--content', {
197
+ 'memori-chat--content-touch': (0, utils_1.hasTouchscreen)(),
198
+ 'memori-chat--content--has-global-background': !!globalBackground,
199
+ }), children: [(0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)('memori-chat--cover'), style: {
200
+ backgroundImage: `url("${(0, media_1.getResourceUrl)({
201
+ type: 'cover',
202
+ tenantID: tenant === null || tenant === void 0 ? void 0 : tenant.name,
203
+ resourceURI: memori.coverURL,
204
+ baseURL: baseUrl,
205
+ apiURL: apiUrl,
206
+ })}"), url("${(0, media_1.getResourceUrl)({
207
+ type: 'cover',
208
+ tenantID: tenant === null || tenant === void 0 ? void 0 : tenant.name,
209
+ baseURL: baseUrl || 'https://www.aisuru.com',
210
+ apiURL: apiUrl,
211
+ })}")`,
212
+ } }), history.map((message, index) => {
213
+ var _a, _b, _c, _d;
214
+ return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { style: {
215
+ marginBottom: index === history.length - 1 ? '24px' : 0,
216
+ }, children: [(0, jsx_runtime_1.jsx)(ChatBubble_1.default, { isFirst: index === 0, message: message, memori: memori, tenant: tenant, client: client, customMediaRenderer: customMediaRenderer, translateTo: translateTo, baseUrl: baseUrl, apiUrl: apiUrl, sessionID: sessionID, simulateUserPrompt: simulateUserPrompt, showAIicon: showAIicon, showWhyThisAnswer: showWhyThisAnswer, codeMimeTypes: CODE_MIME_TYPES, showTranslationOriginal: showTranslationOriginal, showFeedback: index === history.length - 1 &&
217
+ !message.fromUser &&
218
+ (dialogState === null || dialogState === void 0 ? void 0 : dialogState.acceptsFeedback), user: user, userAvatar: userAvatar, experts: experts, showCopyButton: showCopyButton, useMathFormatting: useMathFormatting, showFunctionCache: showFunctionCache, showReasoning: showReasoning, usageHtml: usageHtmlByIndex[index], isChatlogPanel: isChatlogPanel }, `chatbubble-${index}-${((_a = message.text) === null || _a === void 0 ? void 0 : _a.includes('<document_attachment'))
219
+ ? 'has-attachments'
220
+ : 'no-attachments'}-${message.timestamp}`), showDates && !!message.timestamp && !message.fromUser && ((0, jsx_runtime_1.jsx)("small", { className: `memori-chat--timestamp ${message.fromUser ? 'text-right' : 'text-left'}`, children: new Intl.DateTimeFormat('it', {
221
+ hour: '2-digit',
222
+ minute: '2-digit',
223
+ second: '2-digit',
224
+ }).format(new Date(message.timestamp.endsWith('Z')
225
+ ? message.timestamp
226
+ : `${message.timestamp}Z`)) })), showContextPerLine &&
227
+ !!Object.keys((_b = message.contextVars) !== null && _b !== void 0 ? _b : {}).length && ((0, jsx_runtime_1.jsx)("div", { className: "memori-chat--context-vars", children: Object.keys((_c = message.contextVars) !== null && _c !== void 0 ? _c : {}).map(key => {
228
+ var _a, _b, _c;
229
+ return ((_a = message.contextVars) === null || _a === void 0 ? void 0 : _a[key]) === '-' ? ((0, jsx_runtime_1.jsx)("div", { className: `memori-chat--context-tag memori-chat--context-tag-canceled`, children: (0, jsx_runtime_1.jsx)("span", { className: "memori-chat--context-tag-text", children: key }) }, key)) : ((_b = message.contextVars) === null || _b === void 0 ? void 0 : _b[key]) === '✔️' ? ((0, jsx_runtime_1.jsx)("div", { className: "memori-chat--context-tag", children: (0, jsx_runtime_1.jsx)("span", { className: "memori-chat--context-tag-text", children: key }) }, key)) : ((0, jsx_runtime_1.jsx)("div", { className: "memori-chat--context-tag", children: (0, jsx_runtime_1.jsxs)("span", { className: "memori-chat--context-tag-text", children: [key, ": ", (_c = message.contextVars) === null || _c === void 0 ? void 0 : _c[key]] }) }, key));
230
+ }) }))] }) }, `${index}-${((_d = message.text) === null || _d === void 0 ? void 0 : _d.includes('<document_attachment'))
231
+ ? 'has-attachments'
232
+ : 'no-attachments'}-${message.timestamp}`));
233
+ }), (dialogState === null || dialogState === void 0 ? void 0 : dialogState.hints) &&
234
+ dialogState.hints.length > 0 &&
235
+ !memoriTyping && ((0, jsx_runtime_1.jsx)(MediaWidget_1.default, { simulateUserPrompt: simulateUserPrompt, hints: dialogState.translatedHints
236
+ ? dialogState.translatedHints
237
+ : dialogState.hints.map(h => ({
238
+ text: h,
239
+ originalText: h,
240
+ })) })), !!memoriTyping && ((0, jsx_runtime_1.jsx)(Typing_1.default, { useDefaultSentences: showTypingText, lang: translateTo
241
+ ? translateTo.toLowerCase() === 'it'
242
+ ? 'it'
243
+ : 'en'
244
+ : ((_p = (_o = (_m = memori.culture) === null || _m === void 0 ? void 0 : _m.split('-')) === null || _o === void 0 ? void 0 : _o[0]) === null || _p === void 0 ? void 0 : _p.toLowerCase()) === 'it'
245
+ ? 'it'
246
+ : 'en', sentence: typingText, memori: memori, tenant: tenant, baseUrl: baseUrl, apiUrl: apiUrl, experts: experts, sentences: memori.enableBoardOfExperts
247
+ ? constants_1.boardOfExpertsLoadingSentences
248
+ : undefined }, typingText)), (0, jsx_runtime_1.jsx)("div", { id: "end-messages-ref" })] }) }), showInputs && ((0, jsx_runtime_1.jsx)(ChatInputs_1.default, { userMessage: userMessage, onChangeUserMessage: onChangeUserMessage, dialogState: dialogState, instruct: instruct, authToken: authToken, sendMessage: sendMessage, isTyping: memoriTyping, microphoneMode: microphoneMode, sendOnEnter: sendOnEnter, setSendOnEnter: setSendOnEnter, client: client, sessionID: sessionID, showUpload: showUpload, attachmentsMenuOpen: attachmentsMenuOpen, setAttachmentsMenuOpen: setAttachmentsMenuOpen, onTextareaFocus: onTextareaFocus, onTextareaBlur: onTextareaBlur, onTextareaExpanded: onTextareaExpanded, startListening: startListening, stopListening: stopListening, stopAudio: stopAudio, listening: listening, isPlayingAudio: isPlayingAudio, showMicrophone: showMicrophone, memoriID: memori === null || memori === void 0 ? void 0 : memori.memoriID, maxTotalMessagePayload: maxTotalMessagePayload, maxTextareaCharacters: maxTextareaCharacters, maxDocumentsPerMessage: constants_2.maxDocumentsPerMessage, maxDocumentContentLength: constants_2.maxDocumentContentLength, pasteAsCardLineThreshold: constants_2.pasteAsCardLineThreshold, pasteAsCardCharThreshold: constants_2.pasteAsCardCharThreshold, showAiGeneratedNote: showAiGeneratedNote, footerBrand: footerBrand }))] }), (0, jsx_runtime_1.jsxs)(ui_1.Modal, { container: surfaceEl !== null && surfaceEl !== void 0 ? surfaceEl : undefined, open: !!activeUsageBadge, onClose: () => setActiveUsageBadge(null), title: (activeUsageBadge === null || activeUsageBadge === void 0 ? void 0 : activeUsageBadge.type)
241
249
  ? `${llmUsage_1.BADGE_EMOJI[activeUsageBadge.type]} ${llmUsageLabels[activeUsageBadge.type]}`
242
250
  : undefined, className: "memori-chat--usage-modal", children: [(activeUsageBadge === null || activeUsageBadge === void 0 ? void 0 : activeUsageBadge.type) === 'llm' && ((0, jsx_runtime_1.jsxs)("dl", { className: "memori-chat--usage-details", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("dt", { children: llmUsageLabels.provider }), (0, jsx_runtime_1.jsx)("dd", { children: (_q = activeUsageBadge.usage.provider) !== null && _q !== void 0 ? _q : '—' })] }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("dt", { children: llmUsageLabels.model }), (0, jsx_runtime_1.jsx)("dd", { children: (_r = activeUsageBadge.usage.model) !== null && _r !== void 0 ? _r : '—' })] }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("dt", { children: [llmUsageLabels.tokens, " ", llmUsageLabels.input] }), (0, jsx_runtime_1.jsx)("dd", { children: (0, llmUsage_1.formatIntegerValue)((_s = activeUsageBadge.usage.totalInputTokens) !== null && _s !== void 0 ? _s : 0, locale) })] }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("dt", { children: [llmUsageLabels.tokens, " ", llmUsageLabels.output] }), (0, jsx_runtime_1.jsx)("dd", { children: (0, llmUsage_1.formatIntegerValue)((_t = activeUsageBadge.usage.outputTokens) !== null && _t !== void 0 ? _t : 0, locale) })] })] })), (activeUsageBadge === null || activeUsageBadge === void 0 ? void 0 : activeUsageBadge.type) === 'energy' && ((0, jsx_runtime_1.jsxs)("div", { className: "memori-chat--usage-educational-content", children: [(0, jsx_runtime_1.jsx)("strong", { className: "memori-chat--usage-metric-value", children: (0, llmUsage_1.formatImpactWithApiUnit)((_v = (0, llmUsage_1.getMetricValue)((_u = activeUsageBadge.usage.energyImpact) === null || _u === void 0 ? void 0 : _u.energy)) !== null && _v !== void 0 ? _v : 0, (_w = activeUsageBadge.usage.energyImpact) === null || _w === void 0 ? void 0 : _w.energyUnit, 'kWh', 'energy', locale) }), (0, jsx_runtime_1.jsx)(ui_1.Tooltip, { content: t('chatLogs.approximateValuesTooltip', {
243
251
  defaultValue: 'These values are approximate.',