@ethora/chat-component-rn 26.5.20 → 26.6.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 (388) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +43 -3
  3. package/index.js +1 -1
  4. package/lib/commonjs/components/MainComponents/ChatHeader.js +34 -9
  5. package/lib/commonjs/components/MainComponents/ChatHeader.js.map +1 -1
  6. package/lib/commonjs/components/MainComponents/ChatWrapper.js +17 -0
  7. package/lib/commonjs/components/MainComponents/ChatWrapper.js.map +1 -1
  8. package/lib/commonjs/components/MainComponents/LanguageSelectorButton.js +62 -0
  9. package/lib/commonjs/components/MainComponents/LanguageSelectorButton.js.map +1 -0
  10. package/lib/commonjs/components/MainComponents/LanguageSelectorModal.js +253 -0
  11. package/lib/commonjs/components/MainComponents/LanguageSelectorModal.js.map +1 -0
  12. package/lib/commonjs/components/MainComponents/RoomList.js +23 -9
  13. package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
  14. package/lib/commonjs/components/MessageBubble/Message.js +72 -11
  15. package/lib/commonjs/components/MessageBubble/Message.js.map +1 -1
  16. package/lib/commonjs/components/MessageBubble/MessageTranslate.js +160 -0
  17. package/lib/commonjs/components/MessageBubble/MessageTranslate.js.map +1 -0
  18. package/lib/commonjs/components/MessageBubble/TranslatedMessageBody.js +59 -0
  19. package/lib/commonjs/components/MessageBubble/TranslatedMessageBody.js.map +1 -0
  20. package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js +1 -1
  21. package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
  22. package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +6 -0
  23. package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
  24. package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +26 -8
  25. package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
  26. package/lib/commonjs/components/Modals/ModalHeaderComponent.js +15 -1
  27. package/lib/commonjs/components/Modals/ModalHeaderComponent.js.map +1 -1
  28. package/lib/commonjs/components/UsersList/UsersList.js +3 -1
  29. package/lib/commonjs/components/UsersList/UsersList.js.map +1 -1
  30. package/lib/commonjs/components/VideoCalls/CallButtons.js +159 -0
  31. package/lib/commonjs/components/VideoCalls/CallButtons.js.map +1 -0
  32. package/lib/commonjs/components/VideoCalls/CallIcons.js +328 -0
  33. package/lib/commonjs/components/VideoCalls/CallIcons.js.map +1 -0
  34. package/lib/commonjs/components/VideoCalls/VideoCallOverlay.js +550 -0
  35. package/lib/commonjs/components/VideoCalls/VideoCallOverlay.js.map +1 -0
  36. package/lib/commonjs/components/VideoCalls/VideoCallSession.js +636 -0
  37. package/lib/commonjs/components/VideoCalls/VideoCallSession.js.map +1 -0
  38. package/lib/commonjs/components/VideoCalls/livekitRuntime.js +91 -0
  39. package/lib/commonjs/components/VideoCalls/livekitRuntime.js.map +1 -0
  40. package/lib/commonjs/components/VideoCalls/useCallKeep.js +215 -0
  41. package/lib/commonjs/components/VideoCalls/useCallKeep.js.map +1 -0
  42. package/lib/commonjs/components/styled/AudioMessage.js +91 -33
  43. package/lib/commonjs/components/styled/AudioMessage.js.map +1 -1
  44. package/lib/commonjs/components/styled/RoomListComponents/index.js +13 -1
  45. package/lib/commonjs/components/styled/RoomListComponents/index.js.map +1 -1
  46. package/lib/commonjs/components/styled/SendInput.js +111 -51
  47. package/lib/commonjs/components/styled/SendInput.js.map +1 -1
  48. package/lib/commonjs/components/styled/StyledComponents.js +9 -4
  49. package/lib/commonjs/components/styled/StyledComponents.js.map +1 -1
  50. package/lib/commonjs/components/styled/StyledInputComponents/Composing.js +2 -0
  51. package/lib/commonjs/components/styled/StyledInputComponents/Composing.js.map +1 -1
  52. package/lib/commonjs/context/xmppProvider.js +10 -3
  53. package/lib/commonjs/context/xmppProvider.js.map +1 -1
  54. package/lib/commonjs/helpers/callLogMessage.js +162 -0
  55. package/lib/commonjs/helpers/callLogMessage.js.map +1 -0
  56. package/lib/commonjs/helpers/callPush.js +61 -0
  57. package/lib/commonjs/helpers/callPush.js.map +1 -0
  58. package/lib/commonjs/helpers/constants/LANGUAGE_OPTIONS.js +24 -12
  59. package/lib/commonjs/helpers/constants/LANGUAGE_OPTIONS.js.map +1 -1
  60. package/lib/commonjs/helpers/createUserNameFromSetUser.js +51 -2
  61. package/lib/commonjs/helpers/createUserNameFromSetUser.js.map +1 -1
  62. package/lib/commonjs/helpers/getDataFromXml.js +19 -1
  63. package/lib/commonjs/helpers/getDataFromXml.js.map +1 -1
  64. package/lib/commonjs/helpers/getElementFont.js +29 -0
  65. package/lib/commonjs/helpers/getElementFont.js.map +1 -0
  66. package/lib/commonjs/helpers/headerLayout.js +35 -0
  67. package/lib/commonjs/helpers/headerLayout.js.map +1 -0
  68. package/lib/commonjs/helpers/incomingCallFromPush.js +74 -0
  69. package/lib/commonjs/helpers/incomingCallFromPush.js.map +1 -0
  70. package/lib/commonjs/helpers/insertMessageWithDelimiter.js +13 -1
  71. package/lib/commonjs/helpers/insertMessageWithDelimiter.js.map +1 -1
  72. package/lib/commonjs/helpers/isUnresolvedSenderId.js +32 -0
  73. package/lib/commonjs/helpers/isUnresolvedSenderId.js.map +1 -0
  74. package/lib/commonjs/hooks/useChatSettingState.js +2 -0
  75. package/lib/commonjs/hooks/useChatSettingState.js.map +1 -1
  76. package/lib/commonjs/hooks/useMessageTranslation.js +51 -0
  77. package/lib/commonjs/hooks/useMessageTranslation.js.map +1 -0
  78. package/lib/commonjs/hooks/usePushNotifications.js +13 -3
  79. package/lib/commonjs/hooks/usePushNotifications.js.map +1 -1
  80. package/lib/commonjs/hooks/useSendMessage.js +12 -2
  81. package/lib/commonjs/hooks/useSendMessage.js.map +1 -1
  82. package/lib/commonjs/i18n/strings.js +1308 -0
  83. package/lib/commonjs/i18n/strings.js.map +1 -0
  84. package/lib/commonjs/i18n/useT.js +60 -0
  85. package/lib/commonjs/i18n/useT.js.map +1 -0
  86. package/lib/commonjs/main.js +44 -0
  87. package/lib/commonjs/main.js.map +1 -1
  88. package/lib/commonjs/networking/api-requests/push.api.js +34 -5
  89. package/lib/commonjs/networking/api-requests/push.api.js.map +1 -1
  90. package/lib/commonjs/networking/api-requests/rooms.api.js +108 -0
  91. package/lib/commonjs/networking/api-requests/rooms.api.js.map +1 -1
  92. package/lib/commonjs/networking/callTokenStanza.js +531 -0
  93. package/lib/commonjs/networking/callTokenStanza.js.map +1 -0
  94. package/lib/commonjs/networking/outboundQueue.js.map +1 -1
  95. package/lib/commonjs/networking/stanzaHandlers.js +75 -8
  96. package/lib/commonjs/networking/stanzaHandlers.js.map +1 -1
  97. package/lib/commonjs/networking/xmpp/handleStanzas.xmpp.js +47 -11
  98. package/lib/commonjs/networking/xmpp/handleStanzas.xmpp.js.map +1 -1
  99. package/lib/commonjs/networking/xmpp/sendTextMessage.xmpp.js +2 -1
  100. package/lib/commonjs/networking/xmpp/sendTextMessage.xmpp.js.map +1 -1
  101. package/lib/commonjs/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.js +42 -5
  102. package/lib/commonjs/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.js.map +1 -1
  103. package/lib/commonjs/networking/xmppClient.js +78 -16
  104. package/lib/commonjs/networking/xmppClient.js.map +1 -1
  105. package/lib/commonjs/roomStore/callSlice.js +144 -0
  106. package/lib/commonjs/roomStore/callSlice.js.map +1 -0
  107. package/lib/commonjs/roomStore/chatSettingsSlice.js +8 -2
  108. package/lib/commonjs/roomStore/chatSettingsSlice.js.map +1 -1
  109. package/lib/commonjs/roomStore/index.js +7 -1
  110. package/lib/commonjs/roomStore/index.js.map +1 -1
  111. package/lib/commonjs/roomStore/persistence.js +69 -5
  112. package/lib/commonjs/roomStore/persistence.js.map +1 -1
  113. package/lib/commonjs/roomStore/roomsSlice.js +136 -6
  114. package/lib/commonjs/roomStore/roomsSlice.js.map +1 -1
  115. package/lib/commonjs/utils/translateModePolicy.js +33 -0
  116. package/lib/commonjs/utils/translateModePolicy.js.map +1 -0
  117. package/lib/module/components/MainComponents/ChatHeader.js +34 -9
  118. package/lib/module/components/MainComponents/ChatHeader.js.map +1 -1
  119. package/lib/module/components/MainComponents/ChatWrapper.js +17 -0
  120. package/lib/module/components/MainComponents/ChatWrapper.js.map +1 -1
  121. package/lib/module/components/MainComponents/LanguageSelectorButton.js +57 -0
  122. package/lib/module/components/MainComponents/LanguageSelectorButton.js.map +1 -0
  123. package/lib/module/components/MainComponents/LanguageSelectorModal.js +246 -0
  124. package/lib/module/components/MainComponents/LanguageSelectorModal.js.map +1 -0
  125. package/lib/module/components/MainComponents/RoomList.js +23 -9
  126. package/lib/module/components/MainComponents/RoomList.js.map +1 -1
  127. package/lib/module/components/MessageBubble/Message.js +73 -12
  128. package/lib/module/components/MessageBubble/Message.js.map +1 -1
  129. package/lib/module/components/MessageBubble/MessageTranslate.js +155 -0
  130. package/lib/module/components/MessageBubble/MessageTranslate.js.map +1 -0
  131. package/lib/module/components/MessageBubble/TranslatedMessageBody.js +53 -0
  132. package/lib/module/components/MessageBubble/TranslatedMessageBody.js.map +1 -0
  133. package/lib/module/components/Modals/AttachSheet/AttachSheet.js +1 -1
  134. package/lib/module/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
  135. package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +6 -0
  136. package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
  137. package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +27 -9
  138. package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
  139. package/lib/module/components/Modals/ModalHeaderComponent.js +15 -1
  140. package/lib/module/components/Modals/ModalHeaderComponent.js.map +1 -1
  141. package/lib/module/components/UsersList/UsersList.js +3 -1
  142. package/lib/module/components/UsersList/UsersList.js.map +1 -1
  143. package/lib/module/components/VideoCalls/CallButtons.js +154 -0
  144. package/lib/module/components/VideoCalls/CallButtons.js.map +1 -0
  145. package/lib/module/components/VideoCalls/CallIcons.js +309 -0
  146. package/lib/module/components/VideoCalls/CallIcons.js.map +1 -0
  147. package/lib/module/components/VideoCalls/VideoCallOverlay.js +544 -0
  148. package/lib/module/components/VideoCalls/VideoCallOverlay.js.map +1 -0
  149. package/lib/module/components/VideoCalls/VideoCallSession.js +630 -0
  150. package/lib/module/components/VideoCalls/VideoCallSession.js.map +1 -0
  151. package/lib/module/components/VideoCalls/livekitRuntime.js +83 -0
  152. package/lib/module/components/VideoCalls/livekitRuntime.js.map +1 -0
  153. package/lib/module/components/VideoCalls/useCallKeep.js +210 -0
  154. package/lib/module/components/VideoCalls/useCallKeep.js.map +1 -0
  155. package/lib/module/components/styled/AudioMessage.js +91 -33
  156. package/lib/module/components/styled/AudioMessage.js.map +1 -1
  157. package/lib/module/components/styled/RoomListComponents/index.js +13 -1
  158. package/lib/module/components/styled/RoomListComponents/index.js.map +1 -1
  159. package/lib/module/components/styled/SendInput.js +112 -52
  160. package/lib/module/components/styled/SendInput.js.map +1 -1
  161. package/lib/module/components/styled/StyledComponents.js +9 -4
  162. package/lib/module/components/styled/StyledComponents.js.map +1 -1
  163. package/lib/module/components/styled/StyledInputComponents/Composing.js +2 -0
  164. package/lib/module/components/styled/StyledInputComponents/Composing.js.map +1 -1
  165. package/lib/module/context/xmppProvider.js +11 -4
  166. package/lib/module/context/xmppProvider.js.map +1 -1
  167. package/lib/module/helpers/callLogMessage.js +152 -0
  168. package/lib/module/helpers/callLogMessage.js.map +1 -0
  169. package/lib/module/helpers/callPush.js +55 -0
  170. package/lib/module/helpers/callPush.js.map +1 -0
  171. package/lib/module/helpers/constants/LANGUAGE_OPTIONS.js +24 -12
  172. package/lib/module/helpers/constants/LANGUAGE_OPTIONS.js.map +1 -1
  173. package/lib/module/helpers/createUserNameFromSetUser.js +49 -1
  174. package/lib/module/helpers/createUserNameFromSetUser.js.map +1 -1
  175. package/lib/module/helpers/getDataFromXml.js +20 -1
  176. package/lib/module/helpers/getDataFromXml.js.map +1 -1
  177. package/lib/module/helpers/getElementFont.js +24 -0
  178. package/lib/module/helpers/getElementFont.js.map +1 -0
  179. package/lib/module/helpers/headerLayout.js +30 -0
  180. package/lib/module/helpers/headerLayout.js.map +1 -0
  181. package/lib/module/helpers/incomingCallFromPush.js +70 -0
  182. package/lib/module/helpers/incomingCallFromPush.js.map +1 -0
  183. package/lib/module/helpers/insertMessageWithDelimiter.js +13 -1
  184. package/lib/module/helpers/insertMessageWithDelimiter.js.map +1 -1
  185. package/lib/module/helpers/isUnresolvedSenderId.js +27 -0
  186. package/lib/module/helpers/isUnresolvedSenderId.js.map +1 -0
  187. package/lib/module/hooks/useChatSettingState.js +2 -0
  188. package/lib/module/hooks/useChatSettingState.js.map +1 -1
  189. package/lib/module/hooks/useMessageTranslation.js +46 -0
  190. package/lib/module/hooks/useMessageTranslation.js.map +1 -0
  191. package/lib/module/hooks/usePushNotifications.js +13 -3
  192. package/lib/module/hooks/usePushNotifications.js.map +1 -1
  193. package/lib/module/hooks/useSendMessage.js +12 -2
  194. package/lib/module/hooks/useSendMessage.js.map +1 -1
  195. package/lib/module/i18n/strings.js +1300 -0
  196. package/lib/module/i18n/strings.js.map +1 -0
  197. package/lib/module/i18n/useT.js +55 -0
  198. package/lib/module/i18n/useT.js.map +1 -0
  199. package/lib/module/main.js +7 -1
  200. package/lib/module/main.js.map +1 -1
  201. package/lib/module/networking/api-requests/push.api.js +35 -5
  202. package/lib/module/networking/api-requests/push.api.js.map +1 -1
  203. package/lib/module/networking/api-requests/rooms.api.js +109 -1
  204. package/lib/module/networking/api-requests/rooms.api.js.map +1 -1
  205. package/lib/module/networking/callTokenStanza.js +526 -0
  206. package/lib/module/networking/callTokenStanza.js.map +1 -0
  207. package/lib/module/networking/outboundQueue.js.map +1 -1
  208. package/lib/module/networking/stanzaHandlers.js +76 -9
  209. package/lib/module/networking/stanzaHandlers.js.map +1 -1
  210. package/lib/module/networking/xmpp/handleStanzas.xmpp.js +48 -11
  211. package/lib/module/networking/xmpp/handleStanzas.xmpp.js.map +1 -1
  212. package/lib/module/networking/xmpp/sendTextMessage.xmpp.js +1 -1
  213. package/lib/module/networking/xmpp/sendTextMessage.xmpp.js.map +1 -1
  214. package/lib/module/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.js +43 -5
  215. package/lib/module/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.js.map +1 -1
  216. package/lib/module/networking/xmppClient.js +78 -16
  217. package/lib/module/networking/xmppClient.js.map +1 -1
  218. package/lib/module/roomStore/callSlice.js +130 -0
  219. package/lib/module/roomStore/callSlice.js.map +1 -0
  220. package/lib/module/roomStore/chatSettingsSlice.js +6 -1
  221. package/lib/module/roomStore/chatSettingsSlice.js.map +1 -1
  222. package/lib/module/roomStore/index.js +6 -1
  223. package/lib/module/roomStore/index.js.map +1 -1
  224. package/lib/module/roomStore/persistence.js +69 -5
  225. package/lib/module/roomStore/persistence.js.map +1 -1
  226. package/lib/module/roomStore/roomsSlice.js +134 -5
  227. package/lib/module/roomStore/roomsSlice.js.map +1 -1
  228. package/lib/module/utils/translateModePolicy.js +27 -0
  229. package/lib/module/utils/translateModePolicy.js.map +1 -0
  230. package/lib/typescript/components/MainComponents/ChatHeader.d.ts.map +1 -1
  231. package/lib/typescript/components/MainComponents/ChatWrapper.d.ts.map +1 -1
  232. package/lib/typescript/components/MainComponents/LanguageSelectorButton.d.ts +12 -0
  233. package/lib/typescript/components/MainComponents/LanguageSelectorButton.d.ts.map +1 -0
  234. package/lib/typescript/components/MainComponents/LanguageSelectorModal.d.ts +31 -0
  235. package/lib/typescript/components/MainComponents/LanguageSelectorModal.d.ts.map +1 -0
  236. package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -1
  237. package/lib/typescript/components/MessageBubble/Message.d.ts.map +1 -1
  238. package/lib/typescript/components/MessageBubble/MessageTranslate.d.ts +44 -0
  239. package/lib/typescript/components/MessageBubble/MessageTranslate.d.ts.map +1 -0
  240. package/lib/typescript/components/MessageBubble/TranslatedMessageBody.d.ts +24 -0
  241. package/lib/typescript/components/MessageBubble/TranslatedMessageBody.d.ts.map +1 -0
  242. package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts.map +1 -1
  243. package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts.map +1 -1
  244. package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts.map +1 -1
  245. package/lib/typescript/components/Modals/ModalHeaderComponent.d.ts +3 -0
  246. package/lib/typescript/components/Modals/ModalHeaderComponent.d.ts.map +1 -1
  247. package/lib/typescript/components/UsersList/UsersList.d.ts.map +1 -1
  248. package/lib/typescript/components/VideoCalls/CallButtons.d.ts +16 -0
  249. package/lib/typescript/components/VideoCalls/CallButtons.d.ts.map +1 -0
  250. package/lib/typescript/components/VideoCalls/CallIcons.d.ts +30 -0
  251. package/lib/typescript/components/VideoCalls/CallIcons.d.ts.map +1 -0
  252. package/lib/typescript/components/VideoCalls/VideoCallOverlay.d.ts +10 -0
  253. package/lib/typescript/components/VideoCalls/VideoCallOverlay.d.ts.map +1 -0
  254. package/lib/typescript/components/VideoCalls/VideoCallSession.d.ts +38 -0
  255. package/lib/typescript/components/VideoCalls/VideoCallSession.d.ts.map +1 -0
  256. package/lib/typescript/components/VideoCalls/livekitRuntime.d.ts +52 -0
  257. package/lib/typescript/components/VideoCalls/livekitRuntime.d.ts.map +1 -0
  258. package/lib/typescript/components/VideoCalls/useCallKeep.d.ts +32 -0
  259. package/lib/typescript/components/VideoCalls/useCallKeep.d.ts.map +1 -0
  260. package/lib/typescript/components/styled/AudioMessage.d.ts.map +1 -1
  261. package/lib/typescript/components/styled/RoomListComponents/index.d.ts.map +1 -1
  262. package/lib/typescript/components/styled/SendInput.d.ts.map +1 -1
  263. package/lib/typescript/components/styled/StyledComponents.d.ts.map +1 -1
  264. package/lib/typescript/components/styled/StyledInputComponents/Composing.d.ts.map +1 -1
  265. package/lib/typescript/context/xmppProvider.d.ts.map +1 -1
  266. package/lib/typescript/helpers/callLogMessage.d.ts +34 -0
  267. package/lib/typescript/helpers/callLogMessage.d.ts.map +1 -0
  268. package/lib/typescript/helpers/callPush.d.ts +23 -0
  269. package/lib/typescript/helpers/callPush.d.ts.map +1 -0
  270. package/lib/typescript/helpers/constants/LANGUAGE_OPTIONS.d.ts +14 -0
  271. package/lib/typescript/helpers/constants/LANGUAGE_OPTIONS.d.ts.map +1 -1
  272. package/lib/typescript/helpers/createUserNameFromSetUser.d.ts +33 -1
  273. package/lib/typescript/helpers/createUserNameFromSetUser.d.ts.map +1 -1
  274. package/lib/typescript/helpers/getDataFromXml.d.ts.map +1 -1
  275. package/lib/typescript/helpers/getElementFont.d.ts +13 -0
  276. package/lib/typescript/helpers/getElementFont.d.ts.map +1 -0
  277. package/lib/typescript/helpers/headerLayout.d.ts +26 -0
  278. package/lib/typescript/helpers/headerLayout.d.ts.map +1 -0
  279. package/lib/typescript/helpers/incomingCallFromPush.d.ts +14 -0
  280. package/lib/typescript/helpers/incomingCallFromPush.d.ts.map +1 -0
  281. package/lib/typescript/helpers/insertMessageWithDelimiter.d.ts.map +1 -1
  282. package/lib/typescript/helpers/isUnresolvedSenderId.d.ts +2 -0
  283. package/lib/typescript/helpers/isUnresolvedSenderId.d.ts.map +1 -0
  284. package/lib/typescript/hooks/useChatSettingState.d.ts +2 -1
  285. package/lib/typescript/hooks/useChatSettingState.d.ts.map +1 -1
  286. package/lib/typescript/hooks/useMessageTranslation.d.ts +25 -0
  287. package/lib/typescript/hooks/useMessageTranslation.d.ts.map +1 -0
  288. package/lib/typescript/hooks/usePushNotifications.d.ts.map +1 -1
  289. package/lib/typescript/hooks/useSendMessage.d.ts.map +1 -1
  290. package/lib/typescript/i18n/strings.d.ts +16 -0
  291. package/lib/typescript/i18n/strings.d.ts.map +1 -0
  292. package/lib/typescript/i18n/useT.d.ts +34 -0
  293. package/lib/typescript/i18n/useT.d.ts.map +1 -0
  294. package/lib/typescript/main.d.ts +6 -1
  295. package/lib/typescript/main.d.ts.map +1 -1
  296. package/lib/typescript/networking/api-requests/push.api.d.ts.map +1 -1
  297. package/lib/typescript/networking/api-requests/rooms.api.d.ts +3 -0
  298. package/lib/typescript/networking/api-requests/rooms.api.d.ts.map +1 -1
  299. package/lib/typescript/networking/callTokenStanza.d.ts +14 -0
  300. package/lib/typescript/networking/callTokenStanza.d.ts.map +1 -0
  301. package/lib/typescript/networking/outboundQueue.d.ts +1 -0
  302. package/lib/typescript/networking/outboundQueue.d.ts.map +1 -1
  303. package/lib/typescript/networking/stanzaHandlers.d.ts.map +1 -1
  304. package/lib/typescript/networking/xmpp/handleStanzas.xmpp.d.ts.map +1 -1
  305. package/lib/typescript/networking/xmpp/sendTextMessage.xmpp.d.ts +10 -0
  306. package/lib/typescript/networking/xmpp/sendTextMessage.xmpp.d.ts.map +1 -1
  307. package/lib/typescript/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.d.ts +16 -1
  308. package/lib/typescript/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.d.ts.map +1 -1
  309. package/lib/typescript/networking/xmppClient.d.ts +1 -1
  310. package/lib/typescript/networking/xmppClient.d.ts.map +1 -1
  311. package/lib/typescript/roomStore/callSlice.d.ts +39 -0
  312. package/lib/typescript/roomStore/callSlice.d.ts.map +1 -0
  313. package/lib/typescript/roomStore/chatSettingsSlice.d.ts +10 -1
  314. package/lib/typescript/roomStore/chatSettingsSlice.d.ts.map +1 -1
  315. package/lib/typescript/roomStore/index.d.ts +4 -0
  316. package/lib/typescript/roomStore/index.d.ts.map +1 -1
  317. package/lib/typescript/roomStore/persistence.d.ts.map +1 -1
  318. package/lib/typescript/roomStore/roomsSlice.d.ts +6 -1
  319. package/lib/typescript/roomStore/roomsSlice.d.ts.map +1 -1
  320. package/lib/typescript/types/models/language.model.d.ts +1 -1
  321. package/lib/typescript/types/models/language.model.d.ts.map +1 -1
  322. package/lib/typescript/types/models/message.model.d.ts +7 -0
  323. package/lib/typescript/types/models/message.model.d.ts.map +1 -1
  324. package/lib/typescript/types/types.d.ts +165 -1
  325. package/lib/typescript/types/types.d.ts.map +1 -1
  326. package/lib/typescript/utils/translateModePolicy.d.ts +20 -0
  327. package/lib/typescript/utils/translateModePolicy.d.ts.map +1 -0
  328. package/package.json +20 -4
  329. package/src/components/MainComponents/ChatHeader.tsx +44 -11
  330. package/src/components/MainComponents/ChatWrapper.tsx +15 -0
  331. package/src/components/MainComponents/LanguageSelectorButton.tsx +53 -0
  332. package/src/components/MainComponents/LanguageSelectorModal.tsx +276 -0
  333. package/src/components/MainComponents/RoomList.tsx +27 -9
  334. package/src/components/MessageBubble/Message.tsx +109 -17
  335. package/src/components/MessageBubble/MessageTranslate.tsx +182 -0
  336. package/src/components/MessageBubble/TranslatedMessageBody.tsx +59 -0
  337. package/src/components/Modals/AttachSheet/AttachSheet.tsx +1 -3
  338. package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +10 -4
  339. package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +25 -8
  340. package/src/components/Modals/ModalHeaderComponent.tsx +20 -3
  341. package/src/components/UsersList/UsersList.tsx +3 -1
  342. package/src/components/VideoCalls/CallButtons.tsx +171 -0
  343. package/src/components/VideoCalls/CallIcons.tsx +246 -0
  344. package/src/components/VideoCalls/VideoCallOverlay.tsx +627 -0
  345. package/src/components/VideoCalls/VideoCallSession.tsx +675 -0
  346. package/src/components/VideoCalls/livekitRuntime.ts +100 -0
  347. package/src/components/VideoCalls/useCallKeep.ts +252 -0
  348. package/src/components/styled/AudioMessage.tsx +97 -37
  349. package/src/components/styled/RoomListComponents/index.tsx +15 -3
  350. package/src/components/styled/SendInput.tsx +125 -55
  351. package/src/components/styled/StyledComponents.ts +9 -6
  352. package/src/components/styled/StyledInputComponents/Composing.tsx +7 -1
  353. package/src/context/xmppProvider.tsx +14 -1
  354. package/src/helpers/callLogMessage.ts +174 -0
  355. package/src/helpers/callPush.ts +90 -0
  356. package/src/helpers/constants/LANGUAGE_OPTIONS.ts +20 -5
  357. package/src/helpers/createUserNameFromSetUser.ts +68 -2
  358. package/src/helpers/getDataFromXml.ts +40 -4
  359. package/src/helpers/getElementFont.ts +25 -0
  360. package/src/helpers/headerLayout.ts +30 -0
  361. package/src/helpers/incomingCallFromPush.ts +83 -0
  362. package/src/helpers/insertMessageWithDelimiter.ts +27 -9
  363. package/src/helpers/isUnresolvedSenderId.ts +25 -0
  364. package/src/hooks/useChatSettingState.tsx +4 -0
  365. package/src/hooks/useMessageTranslation.ts +70 -0
  366. package/src/hooks/usePushNotifications.ts +15 -3
  367. package/src/hooks/useSendMessage.tsx +15 -2
  368. package/src/i18n/strings.ts +1322 -0
  369. package/src/i18n/useT.ts +56 -0
  370. package/src/main.ts +18 -1
  371. package/src/networking/api-requests/push.api.ts +39 -8
  372. package/src/networking/api-requests/rooms.api.ts +109 -1
  373. package/src/networking/callTokenStanza.ts +636 -0
  374. package/src/networking/outboundQueue.ts +1 -0
  375. package/src/networking/stanzaHandlers.ts +74 -15
  376. package/src/networking/xmpp/handleStanzas.xmpp.ts +52 -11
  377. package/src/networking/xmpp/sendTextMessage.xmpp.ts +1 -1
  378. package/src/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.ts +41 -5
  379. package/src/networking/xmppClient.ts +97 -28
  380. package/src/roomStore/callSlice.ts +190 -0
  381. package/src/roomStore/chatSettingsSlice.ts +16 -0
  382. package/src/roomStore/index.ts +5 -0
  383. package/src/roomStore/persistence.ts +103 -3
  384. package/src/roomStore/roomsSlice.ts +149 -4
  385. package/src/types/models/language.model.ts +17 -1
  386. package/src/types/models/message.model.ts +9 -0
  387. package/src/types/types.ts +178 -2
  388. package/src/utils/translateModePolicy.ts +31 -0
@@ -6,12 +6,16 @@ import {
6
6
  } from './styledModalComponents';
7
7
  import { BackIcon, MoreIcon, QrIcon } from '../../assets/icons';
8
8
  import Button from '../styled/Button';
9
- import { Text } from 'react-native';
9
+ import { Text, StyleProp, TextStyle } from 'react-native';
10
10
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
11
+ import { resolveHeaderHeight } from '../../helpers/headerLayout';
12
+ import { useChatSettingState } from '../../hooks/useChatSettingState';
11
13
 
12
14
  interface ModalHeaderComponentProps {
13
15
  handleCloseModal?: any;
14
16
  headerTitle?: string;
17
+ /** Optional size/weight override for the header title text. */
18
+ titleStyle?: StyleProp<TextStyle>;
15
19
  rightMenu?: React.ReactNode;
16
20
  leftMenu?: React.ReactNode;
17
21
  }
@@ -19,6 +23,7 @@ interface ModalHeaderComponentProps {
19
23
  const ModalHeaderComponent: React.FC<ModalHeaderComponentProps> = ({
20
24
  handleCloseModal,
21
25
  headerTitle,
26
+ titleStyle,
22
27
  rightMenu,
23
28
  leftMenu,
24
29
  }) => {
@@ -28,15 +33,27 @@ const ModalHeaderComponent: React.FC<ModalHeaderComponentProps> = ({
28
33
  // mounted by ReduxWrapper, so this reads the live per-device inset
29
34
  // (notch / Dynamic Island / nothing).
30
35
  const insets = useSafeAreaInsets();
36
+ const { config } = useChatSettingState();
37
+ // Same band height as the in-chat header, sitting BELOW the status-bar
38
+ // inset. Total = inset + band; paddingTop carries the inset and the band
39
+ // is the content area (centered via HeaderContainer's align-items:center),
40
+ // so both headers match in visible height regardless of device notch.
41
+ const band = resolveHeaderHeight(config?.headerLayout?.height);
31
42
  return (
32
- <HeaderContainer style={{ paddingTop: insets.top + 8 }}>
43
+ <HeaderContainer
44
+ style={{
45
+ paddingTop: insets.top,
46
+ paddingBottom: 0,
47
+ height: insets.top + band,
48
+ }}
49
+ >
33
50
  <HeaderLeft>
34
51
  {leftMenu ? (
35
52
  leftMenu
36
53
  ) : (
37
54
  <>
38
55
  <Button EndIcon={<BackIcon />} onPress={handleCloseModal} />
39
- <Text>{headerTitle ?? 'Go back'}</Text>
56
+ <Text style={titleStyle}>{headerTitle ?? 'Go back'}</Text>
40
57
  </>
41
58
  )}
42
59
  </HeaderLeft>
@@ -19,6 +19,7 @@ import { debounce } from '../../helpers/debounce';
19
19
  import { StyledInput } from '../styled/StyledInputComponents/StyledInputComponents';
20
20
  import { useRoomState } from '../../hooks/useRoomState';
21
21
  import { Text, View } from 'react-native';
22
+ import { useT } from '../../i18n/useT';
22
23
 
23
24
  interface UsersListProps {
24
25
  selectedUsers: RoomMember[];
@@ -36,6 +37,7 @@ const UsersList: React.FC<UsersListProps> = ({
36
37
  filter,
37
38
  }) => {
38
39
  const { usersSet } = useRoomState();
40
+ const t = useT();
39
41
  const [searchTerm, setSearchTerm] = useState('');
40
42
  const [filteredUsers, setFilteredUsers] = useState<RoomMember[]>([]);
41
43
 
@@ -80,7 +82,7 @@ const UsersList: React.FC<UsersListProps> = ({
80
82
  )}
81
83
 
82
84
  <StyledInput
83
- placeholder="Search users..."
85
+ placeholder={t('modal.selectUsers.searchPlaceholder')}
84
86
  value={searchTerm}
85
87
  onChangeText={setSearchTerm}
86
88
  style={{ width: '100%' }}
@@ -0,0 +1,171 @@
1
+ import React, { FC, useCallback } from 'react';
2
+ import { StyleSheet, TouchableOpacity, View } from 'react-native';
3
+ import { useDispatch, useSelector } from 'react-redux';
4
+ import { RootState } from '../../roomStore';
5
+ import { setCallError, startOutgoingCall } from '../../roomStore/callSlice';
6
+ import { sendCallInviteSignal } from '../../networking/callTokenStanza';
7
+ import { createChatCall } from '../../networking/api-requests/rooms.api';
8
+ import { useChatSettingState } from '../../hooks/useChatSettingState';
9
+ import { AudioCallIcon, VideoCallIcon } from './CallIcons';
10
+ import { useT } from '../../i18n/useT';
11
+ import { getIconColor } from '../../helpers/getIconColor';
12
+
13
+ /**
14
+ * The audio / video call entry points for the chat header.
15
+ *
16
+ * Kept as its own component (rather than inlined into ChatHeader like the
17
+ * web SDK does) so the whole call feature stays inside components/VideoCalls
18
+ * and ChatHeader gains exactly one line. It renders nothing at all when
19
+ * calls are off, which is the common case.
20
+ *
21
+ * Gating mirrors the web rules: calls need `config.videoCalls.enabled`, a
22
+ * `livekitUrl`, a 1:1 (private) room, and no other call already running.
23
+ * Audio is a second opt-in on top of that (`enableAudioCalls`).
24
+ */
25
+ export const CallButtons: FC = () => {
26
+ const dispatch = useDispatch();
27
+ const t = useT();
28
+ const { config, user } = useChatSettingState();
29
+ const call = useSelector((state: RootState) => state.call);
30
+ const currentRoom = useSelector((state: RootState) => {
31
+ const jid = state.rooms.activeRoomJID;
32
+ return jid ? state.rooms.rooms[jid] : null;
33
+ });
34
+
35
+ const videoCallsConfig = config?.videoCalls;
36
+ const allowedRoomTypes = videoCallsConfig?.allowedRoomTypes || ['private'];
37
+ const isVideoCallsEnabled = videoCallsConfig?.enabled === true;
38
+ const isPrivateRoom = currentRoom?.type === 'private';
39
+ const isRoomAllowed = isPrivateRoom && allowedRoomTypes.includes('private');
40
+ const hasLivekitUrl = Boolean(videoCallsConfig?.livekitUrl?.trim());
41
+ const isCallBusy = call.phase !== 'idle';
42
+ const canCall = isVideoCallsEnabled && isRoomAllowed && hasLivekitUrl;
43
+ const isAudioCallsEnabled =
44
+ canCall && videoCallsConfig?.enableAudioCalls === true;
45
+
46
+ const iconColor = getIconColor(config);
47
+
48
+ const placeCall = useCallback(
49
+ async (kind: 'audio' | 'video') => {
50
+ if (!canCall || isCallBusy || !currentRoom?.jid) {
51
+ return;
52
+ }
53
+
54
+ // The call API expects the bare room name (e.g. "${appId}_<uuid>"),
55
+ // which createRoomFromApi stores as the JID localpart.
56
+ // `currentRoom.name` looks tempting but actually holds the display
57
+ // title (the other party's "First Last"), so passing it produces
58
+ // nonsense URLs like /v1/chats/call/create/test2%20test2.
59
+ const chatName = currentRoom.jid.split('@')[0];
60
+ if (!chatName) {return;}
61
+
62
+ // Resolve the peer xmpp localpart so we can XMPP-signal them when we
63
+ // hang up or cancel, without this they'd keep ringing forever.
64
+ const selfLocal = String(user?.xmppUsername || '').split('@')[0];
65
+ const peer = (currentRoom.members || []).find((member: any) => {
66
+ const mLocal = String(member?.xmppUsername || '').split('@')[0];
67
+ return mLocal && mLocal !== selfLocal;
68
+ });
69
+ const peerXmppUsername = peer?.xmppUsername || null;
70
+
71
+ // Don't show "deleted" / "Deleted User" / "Unknown" as the dial
72
+ // screen title when the chat title is one of the server sentinels.
73
+ // Prefer the peer's first+last name, falling back to the bare chat name.
74
+ const rawTitle = String(currentRoom.name || '').trim();
75
+ const isBadTitle =
76
+ !rawTitle ||
77
+ ['deleted', 'deleted user', 'unknown', 'null'].includes(
78
+ rawTitle.toLowerCase()
79
+ );
80
+ const peerDisplay = peer
81
+ ? `${peer.firstName || ''} ${peer.lastName || ''}`.trim() ||
82
+ (peer as any).name ||
83
+ ''
84
+ : '';
85
+ const dialName =
86
+ (isBadTitle ? peerDisplay : rawTitle) || peerDisplay || chatName;
87
+
88
+ dispatch(
89
+ startOutgoingCall({
90
+ roomJid: currentRoom.jid,
91
+ roomName: dialName,
92
+ roomBareName: chatName,
93
+ kind,
94
+ peerXmppUsername,
95
+ })
96
+ );
97
+
98
+ // Server's broadcast call-token currently drops the `kind` attribute,
99
+ // so signal it directly to the peer first. Direct chat is fast
100
+ // (~50ms) and almost always lands before the server-relayed token
101
+ // (~200-300ms), so the callee enters the right UI mode.
102
+ if (peerXmppUsername) {
103
+ sendCallInviteSignal(kind, {
104
+ peerXmppUsername,
105
+ roomBareName: chatName,
106
+ });
107
+ }
108
+
109
+ try {
110
+ await createChatCall(chatName, { kind });
111
+ } catch (error) {
112
+ const message =
113
+ error instanceof Error
114
+ ? error.message
115
+ : t('call.error.connectFailed');
116
+ dispatch(setCallError(message));
117
+ }
118
+ },
119
+ [canCall, isCallBusy, currentRoom, user?.xmppUsername, dispatch, t]
120
+ );
121
+
122
+ if (!canCall || isCallBusy) {
123
+ return null;
124
+ }
125
+
126
+ return (
127
+ <View style={styles.row}>
128
+ {isAudioCallsEnabled && (
129
+ <TouchableOpacity
130
+ accessibilityRole="button"
131
+ accessibilityLabel={t('call.action.startAudioCall')}
132
+ onPress={() => {
133
+ void placeCall('audio');
134
+ }}
135
+ style={styles.button}
136
+ hitSlop={8}
137
+ >
138
+ <AudioCallIcon color={iconColor} size={22} />
139
+ </TouchableOpacity>
140
+ )}
141
+ <TouchableOpacity
142
+ accessibilityRole="button"
143
+ accessibilityLabel={t('call.action.startVideoCall')}
144
+ onPress={() => {
145
+ void placeCall('video');
146
+ }}
147
+ style={styles.button}
148
+ hitSlop={8}
149
+ >
150
+ <VideoCallIcon color={iconColor} size={22} />
151
+ </TouchableOpacity>
152
+ </View>
153
+ );
154
+ };
155
+
156
+ const styles = StyleSheet.create({
157
+ row: {
158
+ flexDirection: 'row',
159
+ alignItems: 'center',
160
+ gap: 4,
161
+ },
162
+ button: {
163
+ width: 36,
164
+ height: 36,
165
+ borderRadius: 18,
166
+ alignItems: 'center',
167
+ justifyContent: 'center',
168
+ },
169
+ });
170
+
171
+ export default CallButtons;
@@ -0,0 +1,246 @@
1
+ import React from 'react';
2
+ import Svg, { Path, Rect, Line, Circle } from 'react-native-svg';
3
+
4
+ /**
5
+ * Call-control glyph set, 24px, mirrored from the web SDK's inline icons
6
+ * (components/VideoCalls/VideoCallSession.tsx) so the two platforms read
7
+ * the same. The "off" variants overlay a diagonal slash: a thick `cutColor`
8
+ * line under a thin icon-color line, so the slash stays legible against the
9
+ * glyph on any button background.
10
+ *
11
+ * Hosts can replace any of these through `config.videoCalls.icons`.
12
+ */
13
+
14
+ interface IconProps {
15
+ color?: string;
16
+ cutColor?: string;
17
+ size?: number;
18
+ }
19
+
20
+ const DANGER = '#E53935';
21
+
22
+ const Slash: React.FC<{ color: string; cutColor: string }> = ({
23
+ color,
24
+ cutColor,
25
+ }) => (
26
+ <>
27
+ <Line
28
+ x1="3"
29
+ y1="3"
30
+ x2="21"
31
+ y2="21"
32
+ stroke={cutColor}
33
+ strokeWidth={4}
34
+ strokeLinecap="round"
35
+ />
36
+ <Line
37
+ x1="3"
38
+ y1="3"
39
+ x2="21"
40
+ y2="21"
41
+ stroke={color}
42
+ strokeWidth={2}
43
+ strokeLinecap="round"
44
+ />
45
+ </>
46
+ );
47
+
48
+ export const MicOnIcon: React.FC<IconProps> = ({
49
+ color = '#FFFFFF',
50
+ size = 24,
51
+ }) => (
52
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
53
+ <Rect x="8.5" y="2" width="7" height="12" rx="3.5" fill={color} />
54
+ <Path
55
+ d="M5 11a7 7 0 0 0 14 0"
56
+ stroke={color}
57
+ strokeWidth={2}
58
+ strokeLinecap="round"
59
+ fill="none"
60
+ />
61
+ <Line
62
+ x1="12"
63
+ y1="18"
64
+ x2="12"
65
+ y2="22"
66
+ stroke={color}
67
+ strokeWidth={2}
68
+ strokeLinecap="round"
69
+ />
70
+ </Svg>
71
+ );
72
+
73
+ export const MicOffIcon: React.FC<IconProps> = ({
74
+ color = '#FFFFFF',
75
+ cutColor = DANGER,
76
+ size = 24,
77
+ }) => (
78
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
79
+ <Rect x="8.5" y="2" width="7" height="12" rx="3.5" fill={color} />
80
+ <Path
81
+ d="M5 11a7 7 0 0 0 14 0"
82
+ stroke={color}
83
+ strokeWidth={2}
84
+ strokeLinecap="round"
85
+ fill="none"
86
+ />
87
+ <Line
88
+ x1="12"
89
+ y1="18"
90
+ x2="12"
91
+ y2="22"
92
+ stroke={color}
93
+ strokeWidth={2}
94
+ strokeLinecap="round"
95
+ />
96
+ <Slash color={color} cutColor={cutColor} />
97
+ </Svg>
98
+ );
99
+
100
+ export const CameraOnIcon: React.FC<IconProps> = ({
101
+ color = '#FFFFFF',
102
+ size = 24,
103
+ }) => (
104
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
105
+ <Rect x="2" y="6" width="13" height="12" rx="3" fill={color} />
106
+ <Path d="M15 11l6-3.5v9L15 13v-2z" fill={color} />
107
+ </Svg>
108
+ );
109
+
110
+ export const CameraOffIcon: React.FC<IconProps> = ({
111
+ color = '#FFFFFF',
112
+ cutColor = DANGER,
113
+ size = 24,
114
+ }) => (
115
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
116
+ <Rect x="2" y="6" width="13" height="12" rx="3" fill={color} />
117
+ <Path d="M15 11l6-3.5v9L15 13v-2z" fill={color} />
118
+ <Slash color={color} cutColor={cutColor} />
119
+ </Svg>
120
+ );
121
+
122
+ export const HangUpIcon: React.FC<IconProps> = ({
123
+ color = '#FFFFFF',
124
+ size = 24,
125
+ }) => (
126
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
127
+ <Path
128
+ d="M2.5 14.2c-.7-.7-.6-1.9.2-2.5C5 9.9 8.4 8.9 12 8.9s7 1 9.3 2.8c.8.6.9 1.8.2 2.5l-1.6 1.6c-.6.6-1.5.7-2.2.2l-2-1.4a1.7 1.7 0 0 1-.7-1.4v-1.1c-1-.3-2-.4-3-.4s-2 .1-3 .4v1.1c0 .6-.3 1.1-.7 1.4l-2 1.4c-.7.5-1.6.4-2.2-.2l-1.6-1.6z"
129
+ fill={color}
130
+ />
131
+ </Svg>
132
+ );
133
+
134
+ export const AudioCallIcon: React.FC<IconProps> = ({
135
+ color = '#FFFFFF',
136
+ size = 24,
137
+ }) => (
138
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
139
+ <Path
140
+ d="M6.6 2h2.2c.5 0 .9.3 1 .8l.9 3.4c.1.4 0 .8-.4 1.1L8.7 8.6a13 13 0 0 0 6.7 6.7l1.3-1.6c.3-.3.7-.5 1.1-.4l3.4.9c.5.1.8.5.8 1v2.2c0 1.4-1.2 2.6-2.6 2.5A18.4 18.4 0 0 1 2.1 4.6C2 3.2 3.2 2 4.6 2h2z"
141
+ fill={color}
142
+ />
143
+ </Svg>
144
+ );
145
+
146
+ export const VideoCallIcon: React.FC<IconProps> = ({
147
+ color = '#FFFFFF',
148
+ size = 24,
149
+ }) => (
150
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
151
+ <Rect x="2" y="6" width="13" height="12" rx="3" fill={color} />
152
+ <Path d="M15 11l6-3.5v9L15 13v-2z" fill={color} />
153
+ </Svg>
154
+ );
155
+
156
+ export const SwitchCameraIcon: React.FC<IconProps> = ({
157
+ color = '#FFFFFF',
158
+ size = 24,
159
+ }) => (
160
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
161
+ <Path
162
+ d="M9 4h6l1.2 2H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.8L9 4z"
163
+ stroke={color}
164
+ strokeWidth={1.8}
165
+ fill="none"
166
+ strokeLinejoin="round"
167
+ />
168
+ <Path
169
+ d="M9.5 12.5A2.5 2.5 0 0 1 14 11m.5 2.5A2.5 2.5 0 0 1 10 15"
170
+ stroke={color}
171
+ strokeWidth={1.8}
172
+ strokeLinecap="round"
173
+ fill="none"
174
+ />
175
+ <Path d="M14 9.5V11h-1.5M10 16.5V15h1.5" stroke={color} strokeWidth={1.8} />
176
+ </Svg>
177
+ );
178
+
179
+ export const SpeakerIcon: React.FC<IconProps> = ({
180
+ color = '#FFFFFF',
181
+ size = 24,
182
+ }) => (
183
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
184
+ <Path d="M4 9h3l4-4v14l-4-4H4V9z" fill={color} />
185
+ <Path
186
+ d="M15.5 8.5a5 5 0 0 1 0 7M18 6a8.5 8.5 0 0 1 0 12"
187
+ stroke={color}
188
+ strokeWidth={1.8}
189
+ strokeLinecap="round"
190
+ fill="none"
191
+ />
192
+ </Svg>
193
+ );
194
+
195
+ export const SpeakerOffIcon: React.FC<IconProps> = ({
196
+ color = '#FFFFFF',
197
+ cutColor = DANGER,
198
+ size = 24,
199
+ }) => (
200
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
201
+ <Path d="M4 9h3l4-4v14l-4-4H4V9z" fill={color} />
202
+ <Slash color={color} cutColor={cutColor} />
203
+ </Svg>
204
+ );
205
+
206
+ export const MinimizeIcon: React.FC<IconProps> = ({
207
+ color = '#FFFFFF',
208
+ size = 24,
209
+ }) => (
210
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
211
+ <Path
212
+ d="M5 14h5v5M19 10h-5V5"
213
+ stroke={color}
214
+ strokeWidth={2}
215
+ strokeLinecap="round"
216
+ strokeLinejoin="round"
217
+ fill="none"
218
+ />
219
+ </Svg>
220
+ );
221
+
222
+ export const ExpandIcon: React.FC<IconProps> = ({
223
+ color = '#FFFFFF',
224
+ size = 24,
225
+ }) => (
226
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
227
+ <Path
228
+ d="M9 4H4v5M15 20h5v-5"
229
+ stroke={color}
230
+ strokeWidth={2}
231
+ strokeLinecap="round"
232
+ strokeLinejoin="round"
233
+ fill="none"
234
+ />
235
+ </Svg>
236
+ );
237
+
238
+ export const PersonIcon: React.FC<IconProps> = ({
239
+ color = '#FFFFFF',
240
+ size = 24,
241
+ }) => (
242
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
243
+ <Circle cx="12" cy="8" r="4" fill={color} />
244
+ <Path d="M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8" fill={color} />
245
+ </Svg>
246
+ );