@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.
- package/CHANGELOG.md +80 -0
- package/README.md +43 -3
- package/index.js +1 -1
- package/lib/commonjs/components/MainComponents/ChatHeader.js +34 -9
- package/lib/commonjs/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatWrapper.js +17 -0
- package/lib/commonjs/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/commonjs/components/MainComponents/LanguageSelectorButton.js +62 -0
- package/lib/commonjs/components/MainComponents/LanguageSelectorButton.js.map +1 -0
- package/lib/commonjs/components/MainComponents/LanguageSelectorModal.js +253 -0
- package/lib/commonjs/components/MainComponents/LanguageSelectorModal.js.map +1 -0
- package/lib/commonjs/components/MainComponents/RoomList.js +23 -9
- package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/Message.js +72 -11
- package/lib/commonjs/components/MessageBubble/Message.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/MessageTranslate.js +160 -0
- package/lib/commonjs/components/MessageBubble/MessageTranslate.js.map +1 -0
- package/lib/commonjs/components/MessageBubble/TranslatedMessageBody.js +59 -0
- package/lib/commonjs/components/MessageBubble/TranslatedMessageBody.js.map +1 -0
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js +1 -1
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +6 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +26 -8
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ModalHeaderComponent.js +15 -1
- package/lib/commonjs/components/Modals/ModalHeaderComponent.js.map +1 -1
- package/lib/commonjs/components/UsersList/UsersList.js +3 -1
- package/lib/commonjs/components/UsersList/UsersList.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/CallButtons.js +159 -0
- package/lib/commonjs/components/VideoCalls/CallButtons.js.map +1 -0
- package/lib/commonjs/components/VideoCalls/CallIcons.js +328 -0
- package/lib/commonjs/components/VideoCalls/CallIcons.js.map +1 -0
- package/lib/commonjs/components/VideoCalls/VideoCallOverlay.js +550 -0
- package/lib/commonjs/components/VideoCalls/VideoCallOverlay.js.map +1 -0
- package/lib/commonjs/components/VideoCalls/VideoCallSession.js +636 -0
- package/lib/commonjs/components/VideoCalls/VideoCallSession.js.map +1 -0
- package/lib/commonjs/components/VideoCalls/livekitRuntime.js +91 -0
- package/lib/commonjs/components/VideoCalls/livekitRuntime.js.map +1 -0
- package/lib/commonjs/components/VideoCalls/useCallKeep.js +215 -0
- package/lib/commonjs/components/VideoCalls/useCallKeep.js.map +1 -0
- package/lib/commonjs/components/styled/AudioMessage.js +91 -33
- package/lib/commonjs/components/styled/AudioMessage.js.map +1 -1
- package/lib/commonjs/components/styled/RoomListComponents/index.js +13 -1
- package/lib/commonjs/components/styled/RoomListComponents/index.js.map +1 -1
- package/lib/commonjs/components/styled/SendInput.js +111 -51
- package/lib/commonjs/components/styled/SendInput.js.map +1 -1
- package/lib/commonjs/components/styled/StyledComponents.js +9 -4
- package/lib/commonjs/components/styled/StyledComponents.js.map +1 -1
- package/lib/commonjs/components/styled/StyledInputComponents/Composing.js +2 -0
- package/lib/commonjs/components/styled/StyledInputComponents/Composing.js.map +1 -1
- package/lib/commonjs/context/xmppProvider.js +10 -3
- package/lib/commonjs/context/xmppProvider.js.map +1 -1
- package/lib/commonjs/helpers/callLogMessage.js +162 -0
- package/lib/commonjs/helpers/callLogMessage.js.map +1 -0
- package/lib/commonjs/helpers/callPush.js +61 -0
- package/lib/commonjs/helpers/callPush.js.map +1 -0
- package/lib/commonjs/helpers/constants/LANGUAGE_OPTIONS.js +24 -12
- package/lib/commonjs/helpers/constants/LANGUAGE_OPTIONS.js.map +1 -1
- package/lib/commonjs/helpers/createUserNameFromSetUser.js +51 -2
- package/lib/commonjs/helpers/createUserNameFromSetUser.js.map +1 -1
- package/lib/commonjs/helpers/getDataFromXml.js +19 -1
- package/lib/commonjs/helpers/getDataFromXml.js.map +1 -1
- package/lib/commonjs/helpers/getElementFont.js +29 -0
- package/lib/commonjs/helpers/getElementFont.js.map +1 -0
- package/lib/commonjs/helpers/headerLayout.js +35 -0
- package/lib/commonjs/helpers/headerLayout.js.map +1 -0
- package/lib/commonjs/helpers/incomingCallFromPush.js +74 -0
- package/lib/commonjs/helpers/incomingCallFromPush.js.map +1 -0
- package/lib/commonjs/helpers/insertMessageWithDelimiter.js +13 -1
- package/lib/commonjs/helpers/insertMessageWithDelimiter.js.map +1 -1
- package/lib/commonjs/helpers/isUnresolvedSenderId.js +32 -0
- package/lib/commonjs/helpers/isUnresolvedSenderId.js.map +1 -0
- package/lib/commonjs/hooks/useChatSettingState.js +2 -0
- package/lib/commonjs/hooks/useChatSettingState.js.map +1 -1
- package/lib/commonjs/hooks/useMessageTranslation.js +51 -0
- package/lib/commonjs/hooks/useMessageTranslation.js.map +1 -0
- package/lib/commonjs/hooks/usePushNotifications.js +13 -3
- package/lib/commonjs/hooks/usePushNotifications.js.map +1 -1
- package/lib/commonjs/hooks/useSendMessage.js +12 -2
- package/lib/commonjs/hooks/useSendMessage.js.map +1 -1
- package/lib/commonjs/i18n/strings.js +1308 -0
- package/lib/commonjs/i18n/strings.js.map +1 -0
- package/lib/commonjs/i18n/useT.js +60 -0
- package/lib/commonjs/i18n/useT.js.map +1 -0
- package/lib/commonjs/main.js +44 -0
- package/lib/commonjs/main.js.map +1 -1
- package/lib/commonjs/networking/api-requests/push.api.js +34 -5
- package/lib/commonjs/networking/api-requests/push.api.js.map +1 -1
- package/lib/commonjs/networking/api-requests/rooms.api.js +108 -0
- package/lib/commonjs/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/commonjs/networking/callTokenStanza.js +531 -0
- package/lib/commonjs/networking/callTokenStanza.js.map +1 -0
- package/lib/commonjs/networking/outboundQueue.js.map +1 -1
- package/lib/commonjs/networking/stanzaHandlers.js +75 -8
- package/lib/commonjs/networking/stanzaHandlers.js.map +1 -1
- package/lib/commonjs/networking/xmpp/handleStanzas.xmpp.js +47 -11
- package/lib/commonjs/networking/xmpp/handleStanzas.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmpp/sendTextMessage.xmpp.js +2 -1
- package/lib/commonjs/networking/xmpp/sendTextMessage.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.js +42 -5
- package/lib/commonjs/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmppClient.js +78 -16
- package/lib/commonjs/networking/xmppClient.js.map +1 -1
- package/lib/commonjs/roomStore/callSlice.js +144 -0
- package/lib/commonjs/roomStore/callSlice.js.map +1 -0
- package/lib/commonjs/roomStore/chatSettingsSlice.js +8 -2
- package/lib/commonjs/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/commonjs/roomStore/index.js +7 -1
- package/lib/commonjs/roomStore/index.js.map +1 -1
- package/lib/commonjs/roomStore/persistence.js +69 -5
- package/lib/commonjs/roomStore/persistence.js.map +1 -1
- package/lib/commonjs/roomStore/roomsSlice.js +136 -6
- package/lib/commonjs/roomStore/roomsSlice.js.map +1 -1
- package/lib/commonjs/utils/translateModePolicy.js +33 -0
- package/lib/commonjs/utils/translateModePolicy.js.map +1 -0
- package/lib/module/components/MainComponents/ChatHeader.js +34 -9
- package/lib/module/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/module/components/MainComponents/ChatWrapper.js +17 -0
- package/lib/module/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/module/components/MainComponents/LanguageSelectorButton.js +57 -0
- package/lib/module/components/MainComponents/LanguageSelectorButton.js.map +1 -0
- package/lib/module/components/MainComponents/LanguageSelectorModal.js +246 -0
- package/lib/module/components/MainComponents/LanguageSelectorModal.js.map +1 -0
- package/lib/module/components/MainComponents/RoomList.js +23 -9
- package/lib/module/components/MainComponents/RoomList.js.map +1 -1
- package/lib/module/components/MessageBubble/Message.js +73 -12
- package/lib/module/components/MessageBubble/Message.js.map +1 -1
- package/lib/module/components/MessageBubble/MessageTranslate.js +155 -0
- package/lib/module/components/MessageBubble/MessageTranslate.js.map +1 -0
- package/lib/module/components/MessageBubble/TranslatedMessageBody.js +53 -0
- package/lib/module/components/MessageBubble/TranslatedMessageBody.js.map +1 -0
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js +1 -1
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +6 -0
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +27 -9
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/module/components/Modals/ModalHeaderComponent.js +15 -1
- package/lib/module/components/Modals/ModalHeaderComponent.js.map +1 -1
- package/lib/module/components/UsersList/UsersList.js +3 -1
- package/lib/module/components/UsersList/UsersList.js.map +1 -1
- package/lib/module/components/VideoCalls/CallButtons.js +154 -0
- package/lib/module/components/VideoCalls/CallButtons.js.map +1 -0
- package/lib/module/components/VideoCalls/CallIcons.js +309 -0
- package/lib/module/components/VideoCalls/CallIcons.js.map +1 -0
- package/lib/module/components/VideoCalls/VideoCallOverlay.js +544 -0
- package/lib/module/components/VideoCalls/VideoCallOverlay.js.map +1 -0
- package/lib/module/components/VideoCalls/VideoCallSession.js +630 -0
- package/lib/module/components/VideoCalls/VideoCallSession.js.map +1 -0
- package/lib/module/components/VideoCalls/livekitRuntime.js +83 -0
- package/lib/module/components/VideoCalls/livekitRuntime.js.map +1 -0
- package/lib/module/components/VideoCalls/useCallKeep.js +210 -0
- package/lib/module/components/VideoCalls/useCallKeep.js.map +1 -0
- package/lib/module/components/styled/AudioMessage.js +91 -33
- package/lib/module/components/styled/AudioMessage.js.map +1 -1
- package/lib/module/components/styled/RoomListComponents/index.js +13 -1
- package/lib/module/components/styled/RoomListComponents/index.js.map +1 -1
- package/lib/module/components/styled/SendInput.js +112 -52
- package/lib/module/components/styled/SendInput.js.map +1 -1
- package/lib/module/components/styled/StyledComponents.js +9 -4
- package/lib/module/components/styled/StyledComponents.js.map +1 -1
- package/lib/module/components/styled/StyledInputComponents/Composing.js +2 -0
- package/lib/module/components/styled/StyledInputComponents/Composing.js.map +1 -1
- package/lib/module/context/xmppProvider.js +11 -4
- package/lib/module/context/xmppProvider.js.map +1 -1
- package/lib/module/helpers/callLogMessage.js +152 -0
- package/lib/module/helpers/callLogMessage.js.map +1 -0
- package/lib/module/helpers/callPush.js +55 -0
- package/lib/module/helpers/callPush.js.map +1 -0
- package/lib/module/helpers/constants/LANGUAGE_OPTIONS.js +24 -12
- package/lib/module/helpers/constants/LANGUAGE_OPTIONS.js.map +1 -1
- package/lib/module/helpers/createUserNameFromSetUser.js +49 -1
- package/lib/module/helpers/createUserNameFromSetUser.js.map +1 -1
- package/lib/module/helpers/getDataFromXml.js +20 -1
- package/lib/module/helpers/getDataFromXml.js.map +1 -1
- package/lib/module/helpers/getElementFont.js +24 -0
- package/lib/module/helpers/getElementFont.js.map +1 -0
- package/lib/module/helpers/headerLayout.js +30 -0
- package/lib/module/helpers/headerLayout.js.map +1 -0
- package/lib/module/helpers/incomingCallFromPush.js +70 -0
- package/lib/module/helpers/incomingCallFromPush.js.map +1 -0
- package/lib/module/helpers/insertMessageWithDelimiter.js +13 -1
- package/lib/module/helpers/insertMessageWithDelimiter.js.map +1 -1
- package/lib/module/helpers/isUnresolvedSenderId.js +27 -0
- package/lib/module/helpers/isUnresolvedSenderId.js.map +1 -0
- package/lib/module/hooks/useChatSettingState.js +2 -0
- package/lib/module/hooks/useChatSettingState.js.map +1 -1
- package/lib/module/hooks/useMessageTranslation.js +46 -0
- package/lib/module/hooks/useMessageTranslation.js.map +1 -0
- package/lib/module/hooks/usePushNotifications.js +13 -3
- package/lib/module/hooks/usePushNotifications.js.map +1 -1
- package/lib/module/hooks/useSendMessage.js +12 -2
- package/lib/module/hooks/useSendMessage.js.map +1 -1
- package/lib/module/i18n/strings.js +1300 -0
- package/lib/module/i18n/strings.js.map +1 -0
- package/lib/module/i18n/useT.js +55 -0
- package/lib/module/i18n/useT.js.map +1 -0
- package/lib/module/main.js +7 -1
- package/lib/module/main.js.map +1 -1
- package/lib/module/networking/api-requests/push.api.js +35 -5
- package/lib/module/networking/api-requests/push.api.js.map +1 -1
- package/lib/module/networking/api-requests/rooms.api.js +109 -1
- package/lib/module/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/module/networking/callTokenStanza.js +526 -0
- package/lib/module/networking/callTokenStanza.js.map +1 -0
- package/lib/module/networking/outboundQueue.js.map +1 -1
- package/lib/module/networking/stanzaHandlers.js +76 -9
- package/lib/module/networking/stanzaHandlers.js.map +1 -1
- package/lib/module/networking/xmpp/handleStanzas.xmpp.js +48 -11
- package/lib/module/networking/xmpp/handleStanzas.xmpp.js.map +1 -1
- package/lib/module/networking/xmpp/sendTextMessage.xmpp.js +1 -1
- package/lib/module/networking/xmpp/sendTextMessage.xmpp.js.map +1 -1
- package/lib/module/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.js +43 -5
- package/lib/module/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.js.map +1 -1
- package/lib/module/networking/xmppClient.js +78 -16
- package/lib/module/networking/xmppClient.js.map +1 -1
- package/lib/module/roomStore/callSlice.js +130 -0
- package/lib/module/roomStore/callSlice.js.map +1 -0
- package/lib/module/roomStore/chatSettingsSlice.js +6 -1
- package/lib/module/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/module/roomStore/index.js +6 -1
- package/lib/module/roomStore/index.js.map +1 -1
- package/lib/module/roomStore/persistence.js +69 -5
- package/lib/module/roomStore/persistence.js.map +1 -1
- package/lib/module/roomStore/roomsSlice.js +134 -5
- package/lib/module/roomStore/roomsSlice.js.map +1 -1
- package/lib/module/utils/translateModePolicy.js +27 -0
- package/lib/module/utils/translateModePolicy.js.map +1 -0
- package/lib/typescript/components/MainComponents/ChatHeader.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ChatWrapper.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/LanguageSelectorButton.d.ts +12 -0
- package/lib/typescript/components/MainComponents/LanguageSelectorButton.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/LanguageSelectorModal.d.ts +31 -0
- package/lib/typescript/components/MainComponents/LanguageSelectorModal.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/Message.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/MessageTranslate.d.ts +44 -0
- package/lib/typescript/components/MessageBubble/MessageTranslate.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble/TranslatedMessageBody.d.ts +24 -0
- package/lib/typescript/components/MessageBubble/TranslatedMessageBody.d.ts.map +1 -0
- package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ModalHeaderComponent.d.ts +3 -0
- package/lib/typescript/components/Modals/ModalHeaderComponent.d.ts.map +1 -1
- package/lib/typescript/components/UsersList/UsersList.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/CallButtons.d.ts +16 -0
- package/lib/typescript/components/VideoCalls/CallButtons.d.ts.map +1 -0
- package/lib/typescript/components/VideoCalls/CallIcons.d.ts +30 -0
- package/lib/typescript/components/VideoCalls/CallIcons.d.ts.map +1 -0
- package/lib/typescript/components/VideoCalls/VideoCallOverlay.d.ts +10 -0
- package/lib/typescript/components/VideoCalls/VideoCallOverlay.d.ts.map +1 -0
- package/lib/typescript/components/VideoCalls/VideoCallSession.d.ts +38 -0
- package/lib/typescript/components/VideoCalls/VideoCallSession.d.ts.map +1 -0
- package/lib/typescript/components/VideoCalls/livekitRuntime.d.ts +52 -0
- package/lib/typescript/components/VideoCalls/livekitRuntime.d.ts.map +1 -0
- package/lib/typescript/components/VideoCalls/useCallKeep.d.ts +32 -0
- package/lib/typescript/components/VideoCalls/useCallKeep.d.ts.map +1 -0
- package/lib/typescript/components/styled/AudioMessage.d.ts.map +1 -1
- package/lib/typescript/components/styled/RoomListComponents/index.d.ts.map +1 -1
- package/lib/typescript/components/styled/SendInput.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledComponents.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledInputComponents/Composing.d.ts.map +1 -1
- package/lib/typescript/context/xmppProvider.d.ts.map +1 -1
- package/lib/typescript/helpers/callLogMessage.d.ts +34 -0
- package/lib/typescript/helpers/callLogMessage.d.ts.map +1 -0
- package/lib/typescript/helpers/callPush.d.ts +23 -0
- package/lib/typescript/helpers/callPush.d.ts.map +1 -0
- package/lib/typescript/helpers/constants/LANGUAGE_OPTIONS.d.ts +14 -0
- package/lib/typescript/helpers/constants/LANGUAGE_OPTIONS.d.ts.map +1 -1
- package/lib/typescript/helpers/createUserNameFromSetUser.d.ts +33 -1
- package/lib/typescript/helpers/createUserNameFromSetUser.d.ts.map +1 -1
- package/lib/typescript/helpers/getDataFromXml.d.ts.map +1 -1
- package/lib/typescript/helpers/getElementFont.d.ts +13 -0
- package/lib/typescript/helpers/getElementFont.d.ts.map +1 -0
- package/lib/typescript/helpers/headerLayout.d.ts +26 -0
- package/lib/typescript/helpers/headerLayout.d.ts.map +1 -0
- package/lib/typescript/helpers/incomingCallFromPush.d.ts +14 -0
- package/lib/typescript/helpers/incomingCallFromPush.d.ts.map +1 -0
- package/lib/typescript/helpers/insertMessageWithDelimiter.d.ts.map +1 -1
- package/lib/typescript/helpers/isUnresolvedSenderId.d.ts +2 -0
- package/lib/typescript/helpers/isUnresolvedSenderId.d.ts.map +1 -0
- package/lib/typescript/hooks/useChatSettingState.d.ts +2 -1
- package/lib/typescript/hooks/useChatSettingState.d.ts.map +1 -1
- package/lib/typescript/hooks/useMessageTranslation.d.ts +25 -0
- package/lib/typescript/hooks/useMessageTranslation.d.ts.map +1 -0
- package/lib/typescript/hooks/usePushNotifications.d.ts.map +1 -1
- package/lib/typescript/hooks/useSendMessage.d.ts.map +1 -1
- package/lib/typescript/i18n/strings.d.ts +16 -0
- package/lib/typescript/i18n/strings.d.ts.map +1 -0
- package/lib/typescript/i18n/useT.d.ts +34 -0
- package/lib/typescript/i18n/useT.d.ts.map +1 -0
- package/lib/typescript/main.d.ts +6 -1
- package/lib/typescript/main.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/push.api.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/rooms.api.d.ts +3 -0
- package/lib/typescript/networking/api-requests/rooms.api.d.ts.map +1 -1
- package/lib/typescript/networking/callTokenStanza.d.ts +14 -0
- package/lib/typescript/networking/callTokenStanza.d.ts.map +1 -0
- package/lib/typescript/networking/outboundQueue.d.ts +1 -0
- package/lib/typescript/networking/outboundQueue.d.ts.map +1 -1
- package/lib/typescript/networking/stanzaHandlers.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/handleStanzas.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/sendTextMessage.xmpp.d.ts +10 -0
- package/lib/typescript/networking/xmpp/sendTextMessage.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.d.ts +16 -1
- package/lib/typescript/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmppClient.d.ts +1 -1
- package/lib/typescript/networking/xmppClient.d.ts.map +1 -1
- package/lib/typescript/roomStore/callSlice.d.ts +39 -0
- package/lib/typescript/roomStore/callSlice.d.ts.map +1 -0
- package/lib/typescript/roomStore/chatSettingsSlice.d.ts +10 -1
- package/lib/typescript/roomStore/chatSettingsSlice.d.ts.map +1 -1
- package/lib/typescript/roomStore/index.d.ts +4 -0
- package/lib/typescript/roomStore/index.d.ts.map +1 -1
- package/lib/typescript/roomStore/persistence.d.ts.map +1 -1
- package/lib/typescript/roomStore/roomsSlice.d.ts +6 -1
- package/lib/typescript/roomStore/roomsSlice.d.ts.map +1 -1
- package/lib/typescript/types/models/language.model.d.ts +1 -1
- package/lib/typescript/types/models/language.model.d.ts.map +1 -1
- package/lib/typescript/types/models/message.model.d.ts +7 -0
- package/lib/typescript/types/models/message.model.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +165 -1
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/utils/translateModePolicy.d.ts +20 -0
- package/lib/typescript/utils/translateModePolicy.d.ts.map +1 -0
- package/package.json +20 -4
- package/src/components/MainComponents/ChatHeader.tsx +44 -11
- package/src/components/MainComponents/ChatWrapper.tsx +15 -0
- package/src/components/MainComponents/LanguageSelectorButton.tsx +53 -0
- package/src/components/MainComponents/LanguageSelectorModal.tsx +276 -0
- package/src/components/MainComponents/RoomList.tsx +27 -9
- package/src/components/MessageBubble/Message.tsx +109 -17
- package/src/components/MessageBubble/MessageTranslate.tsx +182 -0
- package/src/components/MessageBubble/TranslatedMessageBody.tsx +59 -0
- package/src/components/Modals/AttachSheet/AttachSheet.tsx +1 -3
- package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +10 -4
- package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +25 -8
- package/src/components/Modals/ModalHeaderComponent.tsx +20 -3
- package/src/components/UsersList/UsersList.tsx +3 -1
- package/src/components/VideoCalls/CallButtons.tsx +171 -0
- package/src/components/VideoCalls/CallIcons.tsx +246 -0
- package/src/components/VideoCalls/VideoCallOverlay.tsx +627 -0
- package/src/components/VideoCalls/VideoCallSession.tsx +675 -0
- package/src/components/VideoCalls/livekitRuntime.ts +100 -0
- package/src/components/VideoCalls/useCallKeep.ts +252 -0
- package/src/components/styled/AudioMessage.tsx +97 -37
- package/src/components/styled/RoomListComponents/index.tsx +15 -3
- package/src/components/styled/SendInput.tsx +125 -55
- package/src/components/styled/StyledComponents.ts +9 -6
- package/src/components/styled/StyledInputComponents/Composing.tsx +7 -1
- package/src/context/xmppProvider.tsx +14 -1
- package/src/helpers/callLogMessage.ts +174 -0
- package/src/helpers/callPush.ts +90 -0
- package/src/helpers/constants/LANGUAGE_OPTIONS.ts +20 -5
- package/src/helpers/createUserNameFromSetUser.ts +68 -2
- package/src/helpers/getDataFromXml.ts +40 -4
- package/src/helpers/getElementFont.ts +25 -0
- package/src/helpers/headerLayout.ts +30 -0
- package/src/helpers/incomingCallFromPush.ts +83 -0
- package/src/helpers/insertMessageWithDelimiter.ts +27 -9
- package/src/helpers/isUnresolvedSenderId.ts +25 -0
- package/src/hooks/useChatSettingState.tsx +4 -0
- package/src/hooks/useMessageTranslation.ts +70 -0
- package/src/hooks/usePushNotifications.ts +15 -3
- package/src/hooks/useSendMessage.tsx +15 -2
- package/src/i18n/strings.ts +1322 -0
- package/src/i18n/useT.ts +56 -0
- package/src/main.ts +18 -1
- package/src/networking/api-requests/push.api.ts +39 -8
- package/src/networking/api-requests/rooms.api.ts +109 -1
- package/src/networking/callTokenStanza.ts +636 -0
- package/src/networking/outboundQueue.ts +1 -0
- package/src/networking/stanzaHandlers.ts +74 -15
- package/src/networking/xmpp/handleStanzas.xmpp.ts +52 -11
- package/src/networking/xmpp/sendTextMessage.xmpp.ts +1 -1
- package/src/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.ts +41 -5
- package/src/networking/xmppClient.ts +97 -28
- package/src/roomStore/callSlice.ts +190 -0
- package/src/roomStore/chatSettingsSlice.ts +16 -0
- package/src/roomStore/index.ts +5 -0
- package/src/roomStore/persistence.ts +103 -3
- package/src/roomStore/roomsSlice.ts +149 -4
- package/src/types/models/language.model.ts +17 -1
- package/src/types/models/message.model.ts +9 -0
- package/src/types/types.ts +178 -2
- package/src/utils/translateModePolicy.ts +31 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outboundQueue.d.ts","sourceRoot":"","sources":["../../../src/networking/outboundQueue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IACrC,sBAAsB,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;CACjD;AAED,MAAM,WAAW,UAAU;IACzB,4EAA4E;IAC5E,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,IAAI,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAC7C;AAID,eAAO,MAAM,qBAAqB,QAAS,CAAC;AAI5C;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAS1D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,mBAAmB,EAC3B,GAAG,EAAE,MAAM,GACV,IAAI,CAgBN;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAI7D;AAED,uEAAuE;AACvE,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED,iDAAiD;AACjD,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C"}
|
|
1
|
+
{"version":3,"file":"outboundQueue.d.ts","sourceRoot":"","sources":["../../../src/networking/outboundQueue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IACrC,qCAAqC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IAC/D,sBAAsB,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;CACjD;AAED,MAAM,WAAW,UAAU;IACzB,4EAA4E;IAC5E,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,IAAI,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAC7C;AAID,eAAO,MAAM,qBAAqB,QAAS,CAAC;AAI5C;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAS1D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,mBAAmB,EAC3B,GAAG,EAAE,MAAM,GACV,IAAI,CAgBN;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAI7D;AAED,uEAAuE;AACvE,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED,iDAAiD;AACjD,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stanzaHandlers.d.ts","sourceRoot":"","sources":["../../../src/networking/stanzaHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"stanzaHandlers.d.ts","sourceRoot":"","sources":["../../../src/networking/stanzaHandlers.ts"],"names":[],"mappings":"AAAA,OAA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e,EACf,aAAa,EACb,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,GACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleStanzas.xmpp.d.ts","sourceRoot":"","sources":["../../../../src/networking/xmpp/handleStanzas.xmpp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAmB9B,OAAO,UAAU,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"handleStanzas.xmpp.d.ts","sourceRoot":"","sources":["../../../../src/networking/xmpp/handleStanzas.xmpp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAmB9B,OAAO,UAAU,MAAM,eAAe,CAAC;AA+BvC,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,QA6C/D"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
import { Client } from '@xmpp/client';
|
|
2
|
+
/**
|
|
3
|
+
* Normalize devServer to the WSS service URL that the server uses as
|
|
4
|
+
* the data-element xmlns. The user-facing `xmppDevServer` config
|
|
5
|
+
* typically holds a bare hostname (`xmpp.chat.ethora.com`); the server
|
|
6
|
+
* registers messages under the full `wss://<host>/ws` URL, and stanzas
|
|
7
|
+
* carrying just the bare host as xmlns get silently dropped.
|
|
8
|
+
*
|
|
9
|
+
* Mirrors web's `SERVICE` derivation (utils/runtimeHostConfig.ts).
|
|
10
|
+
*/
|
|
11
|
+
export declare const toServiceXmlns: (devServer: string | undefined, client: Client) => string;
|
|
2
12
|
export declare const sendTextMessage: (client: Client, roomJID: string, firstName: string, lastName: string, photo: string, walletAddress: string, userMessage: string, notDisplayedValue?: string, isReply?: boolean, showInChannel?: boolean, mainMessage?: string, devServer?: string, customId?: string) => void;
|
|
3
13
|
//# sourceMappingURL=sendTextMessage.xmpp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendTextMessage.xmpp.d.ts","sourceRoot":"","sources":["../../../../src/networking/xmpp/sendTextMessage.xmpp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAO,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"sendTextMessage.xmpp.d.ts","sourceRoot":"","sources":["../../../../src/networking/xmpp/sendTextMessage.xmpp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAO,MAAM,cAAc,CAAC;AAK3C;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,GAAG,SAAS,EAAE,QAAQ,MAAM,KAAG,MAW9E,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,QAAQ,MAAM,EACd,SAAS,MAAM,EACf,WAAW,MAAM,EACjB,UAAU,MAAM,EAChB,OAAO,MAAM,EACb,eAAe,MAAM,EACrB,aAAa,MAAM,EACnB,oBAAoB,MAAM,EAC1B,UAAU,OAAO,EACjB,gBAAgB,OAAO,EACvB,cAAc,MAAM,EACpB,YAAY,MAAM,EAClB,WAAW,MAAM,SA2DlB,CAAC"}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import { Client } from '@xmpp/client';
|
|
2
2
|
import { Iso639_1Codes } from '../../types/types';
|
|
3
|
+
/**
|
|
4
|
+
* Same wire message as `sendTextMessage`, plus a `<translate source="xx"/>`
|
|
5
|
+
* child that DECLARES the message's source language so the backend can
|
|
6
|
+
* translate it for readers in other languages. No pre-translation happens
|
|
7
|
+
* client-side.
|
|
8
|
+
*
|
|
9
|
+
* The `<data>` element MUST be built identically to `sendTextMessage`
|
|
10
|
+
* (correct `xmlns` = the `wss://<host>/ws` service URL, and the
|
|
11
|
+
* `senderFirstName` / `senderLastName` / `senderJID` / `roomJid` attr
|
|
12
|
+
* names the server + parser expect). An earlier version spread a loose
|
|
13
|
+
* `stanzaMessage` bag into `<data>` with no xmlns and mismatched attr
|
|
14
|
+
* names — the server silently dropped those stanzas, so no echo came back
|
|
15
|
+
* and every sent message stayed stuck in the "pending" state. Keep this in
|
|
16
|
+
* lockstep with sendTextMessage.xmpp.ts.
|
|
17
|
+
*/
|
|
3
18
|
export declare const sendTextMessageWithTranslateTag: (client: Client, stanzaMessage: {
|
|
4
19
|
roomJID: string;
|
|
5
20
|
firstName: string;
|
|
@@ -12,5 +27,5 @@ export declare const sendTextMessageWithTranslateTag: (client: Client, stanzaMes
|
|
|
12
27
|
showInChannel?: boolean;
|
|
13
28
|
mainMessage?: string;
|
|
14
29
|
devServer?: string;
|
|
15
|
-
}, source: Iso639_1Codes, customId?: string) =>
|
|
30
|
+
}, source: Iso639_1Codes, customId?: string) => boolean;
|
|
16
31
|
//# sourceMappingURL=sendTextMessageWithTranslateTag.xmpp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendTextMessageWithTranslateTag.xmpp.d.ts","sourceRoot":"","sources":["../../../../src/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAO,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"sendTextMessageWithTranslateTag.xmpp.d.ts","sourceRoot":"","sources":["../../../../src/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAO,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,+BAA+B,GAC1C,QAAQ,MAAM,EACd,eAAe;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,EACD,QAAQ,aAAa,EACrB,WAAW,MAAM,KAChB,OA2CF,CAAC"}
|
|
@@ -154,7 +154,7 @@ export declare class XmppClient {
|
|
|
154
154
|
setVCardStanza(_xmppUsername: string): void;
|
|
155
155
|
createPrivateRoomStanza(title: string, description: string, to: string): Promise<string>;
|
|
156
156
|
sendMessageReactionStanza(_messageId: string, _roomJid: string, _reactionsList: string[], _reactionSymbol?: string): void;
|
|
157
|
-
sendTextMessageWithTranslateTagStanza(roomJID: string, firstName: string, lastName: string, photo: string, walletAddress: string, userMessage: string, notDisplayedValue?: string, isReply?: boolean, showInChannel?: boolean, mainMessage?: string,
|
|
157
|
+
sendTextMessageWithTranslateTagStanza(roomJID: string, firstName: string, lastName: string, photo: string, walletAddress: string, userMessage: string, notDisplayedValue?: string, isReply?: boolean, showInChannel?: boolean, mainMessage?: string, langSource?: string, customId?: string): boolean;
|
|
158
158
|
}
|
|
159
159
|
export default XmppClient;
|
|
160
160
|
//# sourceMappingURL=xmppClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xmppClient.d.ts","sourceRoot":"","sources":["../../../src/networking/xmppClient.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"xmppClient.d.ts","sourceRoot":"","sources":["../../../src/networking/xmppClient.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CA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KAAK,EAAE,MAAM,EACb,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,iBAAiB,CAAC,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,OAAO,EACjB,aAAa,CAAC,EAAE,OAAO,EACvB,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,EACnB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO;CA4CX;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type CallPhase = 'idle' | 'requesting' | 'ringing-incoming' | 'connecting' | 'in-call' | 'error';
|
|
2
|
+
export type CallDirection = 'outgoing' | 'incoming' | null;
|
|
3
|
+
export type CallKind = 'audio' | 'video';
|
|
4
|
+
export interface CallState {
|
|
5
|
+
phase: CallPhase;
|
|
6
|
+
direction: CallDirection;
|
|
7
|
+
kind: CallKind;
|
|
8
|
+
roomJid: string | null;
|
|
9
|
+
roomName: string | null;
|
|
10
|
+
roomBareName: string | null;
|
|
11
|
+
callId: string | null;
|
|
12
|
+
peerXmppUsername: string | null;
|
|
13
|
+
token: string | null;
|
|
14
|
+
error: string | null;
|
|
15
|
+
startedAt: number | null;
|
|
16
|
+
connectedAt: number | null;
|
|
17
|
+
}
|
|
18
|
+
export declare const startOutgoingCall: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
19
|
+
roomJid: string;
|
|
20
|
+
roomName?: string | null;
|
|
21
|
+
roomBareName?: string | null;
|
|
22
|
+
kind?: CallKind;
|
|
23
|
+
peerXmppUsername?: string | null;
|
|
24
|
+
}, "call/startOutgoingCall">, setIncomingCallToken: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
25
|
+
roomJid: string;
|
|
26
|
+
roomName?: string | null;
|
|
27
|
+
roomBareName?: string | null;
|
|
28
|
+
token: string;
|
|
29
|
+
kind?: CallKind;
|
|
30
|
+
callId?: string | null;
|
|
31
|
+
peerXmppUsername?: string | null;
|
|
32
|
+
}, "call/setIncomingCallToken">, setOutgoingCallToken: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
33
|
+
roomJid: string;
|
|
34
|
+
token: string;
|
|
35
|
+
callId?: string | null;
|
|
36
|
+
}, "call/setOutgoingCallToken">, acceptIncomingCall: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"call/acceptIncomingCall">, declineIncomingCall: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"call/declineIncomingCall">, endCall: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"call/endCall">, setCallError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "call/setCallError">, setCallPhase: import("@reduxjs/toolkit").ActionCreatorWithPayload<CallPhase, "call/setCallPhase">, setCallKind: import("@reduxjs/toolkit").ActionCreatorWithPayload<CallKind, "call/setCallKind">, resetCall: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"call/resetCall">;
|
|
37
|
+
declare const _default: import("redux").Reducer<CallState>;
|
|
38
|
+
export default _default;
|
|
39
|
+
//# sourceMappingURL=callSlice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callSlice.d.ts","sourceRoot":"","sources":["../../../src/roomStore/callSlice.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,YAAY,GACZ,kBAAkB,GAClB,YAAY,GACZ,SAAS,GACT,OAAO,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,UAAU,GAAG,IAAI,CAAC;AAC3D,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;AAEzC,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,EAAE,aAAa,CAAC;IACzB,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAG5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAItB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AA6ID,eAAO,MACL,iBAAiB;aApHF,MAAM;eACJ,MAAM,GAAG,IAAI;mBACT,MAAM,GAAG,IAAI;WACrB,QAAQ;uBACI,MAAM,GAAG,IAAI;8BAiHtC,oBAAoB;aA3FL,MAAM;eACJ,MAAM,GAAG,IAAI;mBACT,MAAM,GAAG,IAAI;WACrB,MAAM;WACN,QAAQ;aACN,MAAM,GAAG,IAAI;uBACH,MAAM,GAAG,IAAI;iCAsFtC,oBAAoB;aAhEL,MAAM;WACR,MAAM;aACJ,MAAM,GAAG,IAAI;iCA+D5B,kBAAkB,qFAClB,mBAAmB,sFACnB,OAAO,0EACP,YAAY,oFACZ,YAAY,uFACZ,WAAW,qFACX,SAAS,0EACU,CAAC;;AAEtB,wBAAiC"}
|
|
@@ -2,6 +2,7 @@ import { PayloadAction, type Slice } from '@reduxjs/toolkit';
|
|
|
2
2
|
import type { WritableDraft } from 'immer';
|
|
3
3
|
import { DeleteModal, IConfig, IUser, ModalFile, ModalType, User } from '../types/types';
|
|
4
4
|
import { Iso639_1Codes } from '../types/models/language.model';
|
|
5
|
+
import type { TranslateMode } from '../utils/translateModePolicy';
|
|
5
6
|
export interface ChatState {
|
|
6
7
|
user: User;
|
|
7
8
|
config?: IConfig;
|
|
@@ -11,6 +12,13 @@ export interface ChatState {
|
|
|
11
12
|
activeFile?: ModalFile;
|
|
12
13
|
client?: any;
|
|
13
14
|
langSource?: Iso639_1Codes;
|
|
15
|
+
/**
|
|
16
|
+
* The reader's own auto/manual pick from the language modal's switcher.
|
|
17
|
+
* Undefined until they touch it, at which point it wins over the host's
|
|
18
|
+
* `config.translates.mode` default (unless the host pinned `forceType`).
|
|
19
|
+
* See utils/translateModePolicy.
|
|
20
|
+
*/
|
|
21
|
+
translateMode?: TranslateMode;
|
|
14
22
|
}
|
|
15
23
|
export declare const unpackAndTransform: (input?: User) => User;
|
|
16
24
|
declare const reducers: {
|
|
@@ -30,6 +38,7 @@ declare const reducers: {
|
|
|
30
38
|
}>) => void;
|
|
31
39
|
logout: (state: WritableDraft<ChatState>) => void;
|
|
32
40
|
setLangSource: (state: WritableDraft<ChatState>, action: PayloadAction<Iso639_1Codes | undefined>) => void;
|
|
41
|
+
setTranslateMode: (state: WritableDraft<ChatState>, action: PayloadAction<TranslateMode | undefined>) => void;
|
|
33
42
|
};
|
|
34
43
|
export declare const chatSlice: Slice<ChatState, typeof reducers, 'chat'>;
|
|
35
44
|
export declare const setUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<User, "chat/setUser">, setConfig: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<IConfig | undefined, "chat/setConfig">, refreshTokens: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -37,7 +46,7 @@ export declare const setUser: import("@reduxjs/toolkit").ActionCreatorWithPayloa
|
|
|
37
46
|
refreshToken: string;
|
|
38
47
|
}, "chat/refreshTokens">, logout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"chat/logout">, setActiveModal: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string | undefined, "chat/setActiveModal">, setDeleteModal: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<DeleteModal | undefined, "chat/setDeleteModal">, setSelectedUser: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<IUser | undefined, "chat/setSelectedUser">, updateUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
39
48
|
updates: Partial<User>;
|
|
40
|
-
}, "chat/updateUser">, setActiveFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<ModalFile, "chat/setActiveFile">, setStoreClient: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "chat/setStoreClient">, setLangSource: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<Iso639_1Codes | undefined, "chat/setLangSource">;
|
|
49
|
+
}, "chat/updateUser">, setActiveFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<ModalFile, "chat/setActiveFile">, setStoreClient: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "chat/setStoreClient">, setLangSource: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<Iso639_1Codes | undefined, "chat/setLangSource">, setTranslateMode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TranslateMode | undefined, "chat/setTranslateMode">;
|
|
41
50
|
declare const _default: import("redux").Reducer<ChatState>;
|
|
42
51
|
export default _default;
|
|
43
52
|
//# sourceMappingURL=chatSettingsSlice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatSettingsSlice.d.ts","sourceRoot":"","sources":["../../../src/roomStore/chatSettingsSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EACL,WAAW,EAEX,OAAO,EACP,KAAK,EACL,SAAS,EACT,SAAS,EACT,IAAI,EACL,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"chatSettingsSlice.d.ts","sourceRoot":"","sources":["../../../src/roomStore/chatSettingsSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EACL,WAAW,EAEX,OAAO,EACP,KAAK,EACL,SAAS,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S,CAAC,UACvB,aAAa,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;oBAOhD,aAAa,CAAC,SAAS,CAAC;2BAS/B,aAAa,CAAC,SAAS,CAAC,UACvB,aAAa,CAAC,aAAa,GAAG,SAAS,CAAC;8BAKzC,aAAa,CAAC,SAAS,CAAC,UACvB,aAAa,CAAC,aAAa,GAAG,SAAS,CAAC;CAInD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,OAAO,QAAQ,EAAE,MAAM,CAI9D,CAAC;AAEH,eAAO,MACL,OAAO,6EACP,SAAS,sGACT,aAAa;WAtCoB,MAAM;kBAAgB,MAAM;0BAuC7D,MAAM,yEACN,cAAc,0GACd,cAAc,+GACd,eAAe,0GACf,UAAU;aA5EmE,OAAO,CAAC,IAAI,CAAC;uBA6E1F,aAAa,wFACb,cAAc,mFACd,aAAa,gHACb,gBAAgB,iHACG,CAAC;;AAEtB,wBAAiC"}
|
|
@@ -3,21 +3,25 @@ declare const rootReducer: import("redux").Reducer<{
|
|
|
3
3
|
chatSettingStore: import("./chatSettingsSlice").ChatState;
|
|
4
4
|
rooms: import("./roomsSlice").RoomMessagesState;
|
|
5
5
|
roomHeapSlice: import("./roomHeapSlice").roomHeapSliceState;
|
|
6
|
+
call: import("./callSlice").CallState;
|
|
6
7
|
}, import("redux").UnknownAction, Partial<{
|
|
7
8
|
chatSettingStore: import("./chatSettingsSlice").ChatState | undefined;
|
|
8
9
|
rooms: import("./roomsSlice").RoomMessagesState | undefined;
|
|
9
10
|
roomHeapSlice: import("./roomHeapSlice").roomHeapSliceState | undefined;
|
|
11
|
+
call: import("./callSlice").CallState | undefined;
|
|
10
12
|
}>>;
|
|
11
13
|
export type RootState = ReturnType<typeof rootReducer>;
|
|
12
14
|
export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
13
15
|
chatSettingStore: import("./chatSettingsSlice").ChatState;
|
|
14
16
|
rooms: import("./roomsSlice").RoomMessagesState;
|
|
15
17
|
roomHeapSlice: import("./roomHeapSlice").roomHeapSliceState;
|
|
18
|
+
call: import("./callSlice").CallState;
|
|
16
19
|
}, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
17
20
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
18
21
|
chatSettingStore: import("./chatSettingsSlice").ChatState;
|
|
19
22
|
rooms: import("./roomsSlice").RoomMessagesState;
|
|
20
23
|
roomHeapSlice: import("./roomHeapSlice").roomHeapSliceState;
|
|
24
|
+
call: import("./callSlice").CallState;
|
|
21
25
|
}, undefined, import("redux").UnknownAction>;
|
|
22
26
|
}>, import("redux").StoreEnhancer]>>;
|
|
23
27
|
export type AppDispatch = typeof store.dispatch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomStore/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomStore/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAOvC,QAAA,MAAM,WAAW;;;;;;;;;;GAQf,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAmCvD,eAAO,MAAM,KAAK;;;;;;;;;;;;oCAEgC,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC,QAAQ,CAAC;AAEhD,eAAO,MAAM,aAAa,GAAI,OAAO,SAAS,KAAG,KAAK,GAAG,IAKxD,CAAC;AAGF,eAAO,MAAM,cAAc,eAapB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistence.d.ts","sourceRoot":"","sources":["../../../src/roomStore/persistence.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAY,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAoBvD,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC,UAAU,kBAAkB;IAC1B,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CAE9B;
|
|
1
|
+
{"version":3,"file":"persistence.d.ts","sourceRoot":"","sources":["../../../src/roomStore/persistence.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAY,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAoBvD,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC,UAAU,kBAAkB;IAC1B,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CAE9B;AAoJD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAoCnC,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC;IAClD,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAChC,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAAC;CACnC,CAAC,CAeD;AAED,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAMzD;AAED,eAAO,MAAM,YAAY;;;CAA0B,CAAC"}
|
|
@@ -143,6 +143,9 @@ declare const reducers: {
|
|
|
143
143
|
applyRoomsPreloadBatch: (state: WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
144
144
|
rooms: RoomPreloadPatch[];
|
|
145
145
|
}>) => void;
|
|
146
|
+
mergeUsersSet(state: WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
147
|
+
members: Record<string, any>;
|
|
148
|
+
}>): void;
|
|
146
149
|
};
|
|
147
150
|
export declare const roomsStore: Slice<RoomMessagesState, typeof reducers, 'roomMessages'>;
|
|
148
151
|
export declare const msgSortableMs: (msg: any) => number;
|
|
@@ -202,7 +205,9 @@ export declare const addRoom: import("@reduxjs/toolkit").ActionCreatorWithPayloa
|
|
|
202
205
|
reactions: string[];
|
|
203
206
|
latestReactionTimestamp?: string;
|
|
204
207
|
data?: Record<string, string>;
|
|
205
|
-
}, "roomMessages/setReactions"
|
|
208
|
+
}, "roomMessages/setReactions">, mergeUsersSet: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
209
|
+
members: Record<string, any>;
|
|
210
|
+
}, "roomMessages/mergeUsersSet">;
|
|
206
211
|
declare const _default: import("redux").Reducer<RoomMessagesState>;
|
|
207
212
|
export default _default;
|
|
208
213
|
//# sourceMappingURL=roomsSlice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roomsSlice.d.ts","sourceRoot":"","sources":["../../../src/roomStore/roomsSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,aAAa,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAElF,OAAO,KAAK,UAAU,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"roomsSlice.d.ts","sourceRoot":"","sources":["../../../src/roomStore/roomsSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,aAAa,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAElF,OAA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zD,cAAc,yFACd,gBAAgB;QA9MgB,MAAM;aAAW,MAAM;qCA+MvD,qBAAqB;aAjMgB,MAAM;0CAkM3C,UAAU;SAnkByE,MAAM;+BAokBzF,UAAU;SAzjBuB,MAAM;aAAW,OAAO,CAAC,KAAK,CAAC;+BA0jBhE,sBAAsB;WAtIa,gBAAgB,EAAE;2CAuIrD,yBAAyB,gHACzB,2BAA2B,sGAC3B,YAAY;aAjPG,MAAM;eACJ,MAAM;WACV,MAAM;eACF,MAAM,EAAE;8BACO,MAAM;WACzB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;iCA6OnC,aAAa;aA5GwB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;gCA6GpC,CAAC;;AAEvB,wBAAkC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language.model.d.ts","sourceRoot":"","sources":["../../../../src/types/models/language.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"language.model.d.ts","sourceRoot":"","sources":["../../../../src/types/models/language.model.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,aAAa,GACrB,IAAI,GACJ,OAAO,GACP,IAAI,GACJ,OAAO,GACP,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,OAAO,GACP,IAAI,CAAC;AAET,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,aAAa,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC"}
|
|
@@ -33,6 +33,13 @@ export interface IMessage {
|
|
|
33
33
|
xmppFrom?: string;
|
|
34
34
|
deleted?: boolean;
|
|
35
35
|
isEdited?: boolean;
|
|
36
|
+
callLog?: {
|
|
37
|
+
callId: string;
|
|
38
|
+
direction: 'outgoing' | 'incoming';
|
|
39
|
+
durationMs: number;
|
|
40
|
+
missed: boolean;
|
|
41
|
+
kind: 'audio' | 'video';
|
|
42
|
+
};
|
|
36
43
|
}
|
|
37
44
|
export interface ReactionMessage {
|
|
38
45
|
emoji: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.model.d.ts","sourceRoot":"","sources":["../../../../src/types/models/message.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,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OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;CAAG;AAEpC,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -253,6 +253,8 @@ export interface TypographyConfig {
|
|
|
253
253
|
};
|
|
254
254
|
/** Chat profile screen (opens when tapping the room name in the header). */
|
|
255
255
|
profile?: {
|
|
256
|
+
/** The "Chat Profile" bar title at the very top of the profile screen. Default ~system (small). */
|
|
257
|
+
screenTitle?: ChatTextStyle;
|
|
256
258
|
/** Big room-name title at the top of the profile screen. Default 24 / "400". */
|
|
257
259
|
title?: ChatTextStyle;
|
|
258
260
|
/** Member name rows. Default 16 / "600". */
|
|
@@ -264,9 +266,23 @@ export interface TypographyConfig {
|
|
|
264
266
|
title?: ChatTextStyle;
|
|
265
267
|
/** Row labels (Camera / Gallery / Document). Default 16 / "500". */
|
|
266
268
|
rowLabel?: ChatTextStyle;
|
|
269
|
+
/** Grey hint under each row. Default 12. */
|
|
270
|
+
rowHint?: ChatTextStyle;
|
|
267
271
|
/** Cancel button. Default 16 / "600". */
|
|
268
272
|
cancelButton?: ChatTextStyle;
|
|
269
273
|
};
|
|
274
|
+
/**
|
|
275
|
+
* Generic per-element font overrides addressed by key, applied via the
|
|
276
|
+
* `getElementFont` helper as the highest-priority style layer. These target
|
|
277
|
+
* smaller text elements that don't have a dedicated key above:
|
|
278
|
+
* - `headerSubtitle` — the "N users" / typing line in the chat header
|
|
279
|
+
* - `inputText` — the message composer input (overrides `input`)
|
|
280
|
+
* - `profileStatus` — the "N members" line on the profile screen
|
|
281
|
+
* - `profileSectionLabel` — profile field labels ("Description", "Chat
|
|
282
|
+
* type") and the member last-active line
|
|
283
|
+
* When both this and a dedicated key target the same element, this wins.
|
|
284
|
+
*/
|
|
285
|
+
elements?: Partial<Record<'headerSubtitle' | 'inputText' | 'profileStatus' | 'profileSectionLabel', ChatTextStyle>>;
|
|
270
286
|
}
|
|
271
287
|
export interface IConfig {
|
|
272
288
|
appId?: string;
|
|
@@ -305,6 +321,20 @@ export interface IConfig {
|
|
|
305
321
|
};
|
|
306
322
|
bubleMessage?: MessageBubble;
|
|
307
323
|
headerLogo?: string | React.ReactElement;
|
|
324
|
+
/**
|
|
325
|
+
* Sizing for BOTH headers (the in-chat header and the full-screen modal
|
|
326
|
+
* headers like Chat Profile), kept in sync so they render at the same
|
|
327
|
+
* visible height.
|
|
328
|
+
*/
|
|
329
|
+
headerLayout?: {
|
|
330
|
+
/**
|
|
331
|
+
* Height in px of the header bar (the band below the status bar).
|
|
332
|
+
* Default 64. Acts as a floor too: values at or below the default are
|
|
333
|
+
* ignored so a too-small number can't collapse the bar — only a larger
|
|
334
|
+
* value takes effect.
|
|
335
|
+
*/
|
|
336
|
+
height?: number;
|
|
337
|
+
};
|
|
308
338
|
disableHeader?: boolean;
|
|
309
339
|
disableMedia?: boolean;
|
|
310
340
|
/**
|
|
@@ -312,7 +342,7 @@ export interface IConfig {
|
|
|
312
342
|
* When `true`, an idle input (no text, no attachments) shows a
|
|
313
343
|
* microphone in the send-button slot; tap → start recording → stop &
|
|
314
344
|
* send. iOS apps need `NSMicrophoneUsageDescription` in Info.plist
|
|
315
|
-
* (add via `expo-
|
|
345
|
+
* (add via `expo-audio`'s plugin block in `app.json`). Receiving voice
|
|
316
346
|
* messages from other clients (incl. legacy web `.bin` voicemails) is
|
|
317
347
|
* independent of this flag — incoming audio plays regardless.
|
|
318
348
|
*/
|
|
@@ -458,11 +488,92 @@ export interface IConfig {
|
|
|
458
488
|
translates?: {
|
|
459
489
|
enabled: boolean;
|
|
460
490
|
translations?: Iso639_1Codes;
|
|
491
|
+
/**
|
|
492
|
+
* 'auto' shows the translation inline automatically. 'manual' shows a
|
|
493
|
+
* "Translate" link the reader taps (LinkedIn-style), then renders the
|
|
494
|
+
* result inline with a "Show original" toggle. Default 'auto'.
|
|
495
|
+
*
|
|
496
|
+
* Neither mode calls any translation service, both only ever display
|
|
497
|
+
* `message.translations`, whatever arrived attached to the stanza (see
|
|
498
|
+
* `readerLocale` below for how a message gets translated in the first
|
|
499
|
+
* place). This is purely a display choice: show it immediately, or let
|
|
500
|
+
* the reader ask for it.
|
|
501
|
+
*/
|
|
502
|
+
mode?: 'auto' | 'manual';
|
|
503
|
+
/**
|
|
504
|
+
* Pins `mode` as fixed host policy. When true, the language-selector
|
|
505
|
+
* modal's auto/manual switcher does not render at all, and the reader
|
|
506
|
+
* has no way to override `mode`, it's always whatever the host set.
|
|
507
|
+
* Defaults to false: the reader can flip between auto and manual
|
|
508
|
+
* themselves via the switcher, which then wins over `mode` (the host's
|
|
509
|
+
* declared default, used until the reader touches it).
|
|
510
|
+
*/
|
|
511
|
+
forceType?: boolean;
|
|
512
|
+
/**
|
|
513
|
+
* Reader's full locale (BCP-47, e.g. "fr-CA"). Falls back to
|
|
514
|
+
* `config.i18n.locale`. The region is passed through to `onTranslate` so
|
|
515
|
+
* the service can distinguish fr-CA vs fr-FR; the Translate button
|
|
516
|
+
* visibility comparison ignores the region (en-US vs en-CA => no button).
|
|
517
|
+
*
|
|
518
|
+
* This is also how a host drives the reader's language from OUTSIDE the
|
|
519
|
+
* chat component: set it (e.g. from your own app's language switcher)
|
|
520
|
+
* and pass the updated config down as a normal prop.
|
|
521
|
+
*/
|
|
522
|
+
readerLocale?: string;
|
|
523
|
+
/**
|
|
524
|
+
* Shows/hides the globe-icon language picker in the chat header.
|
|
525
|
+
* Defaults to true whenever `enabled` is true. Set to false when the
|
|
526
|
+
* host manages the reader's language itself (via `readerLocale`) and
|
|
527
|
+
* an in-chat picker would just be a second, redundant control.
|
|
528
|
+
*/
|
|
529
|
+
showLanguageSelector?: boolean;
|
|
530
|
+
/**
|
|
531
|
+
* Shows/hides the list of selectable languages INSIDE the picker
|
|
532
|
+
* (English/Espanol/...). Defaults to true. Set to false to keep only
|
|
533
|
+
* the enable/disable-translates toggle.
|
|
534
|
+
*/
|
|
535
|
+
showLanguageList?: boolean;
|
|
536
|
+
/**
|
|
537
|
+
* Host-provided translation function. When set, the manual Translate
|
|
538
|
+
* action calls this, wire it to your own service, instead of reading
|
|
539
|
+
* `message.translations`. Optional; omit to use only what already
|
|
540
|
+
* arrived over XMPP.
|
|
541
|
+
*/
|
|
542
|
+
onTranslate?: (text: string, ctx: {
|
|
543
|
+
sourceLocale?: string;
|
|
544
|
+
targetLocale: string;
|
|
545
|
+
message: IMessage;
|
|
546
|
+
}) => Promise<string>;
|
|
547
|
+
/**
|
|
548
|
+
* Host predicate deciding whether to show the Translate action for a
|
|
549
|
+
* given message. When omitted, the component compares base languages
|
|
550
|
+
* (message source vs reader, region ignored) and shows the action when
|
|
551
|
+
* they differ.
|
|
552
|
+
*/
|
|
553
|
+
showTranslateForMessage?: (message: IMessage) => boolean;
|
|
554
|
+
};
|
|
555
|
+
/**
|
|
556
|
+
* Static UI i18n (interface captions like "Search...", "Type message").
|
|
557
|
+
* `locale` is a BCP-47 tag the host passes from the device/user (e.g. "en",
|
|
558
|
+
* "fr-CA", "es-US"); captions resolve to its base language. `strings`
|
|
559
|
+
* overrides or extends any built-in caption by key (see src/i18n/strings.ts).
|
|
560
|
+
* Built-in languages: en, fr, es, pt, ht, zh. Independent from `translates`
|
|
561
|
+
* (dynamic per-message translation).
|
|
562
|
+
*/
|
|
563
|
+
i18n?: {
|
|
564
|
+
locale?: string;
|
|
565
|
+
strings?: Record<string, string>;
|
|
461
566
|
};
|
|
462
567
|
enableTranslates?: boolean;
|
|
463
568
|
inAppNotifications?: InAppNotificationConfig;
|
|
464
569
|
pushNotifications?: {
|
|
465
570
|
enabled?: boolean;
|
|
571
|
+
/**
|
|
572
|
+
* Base URL of the push subscription service, including the version
|
|
573
|
+
* segment (e.g. "https://push.chat.ethora.com/api/v1"). Set this for
|
|
574
|
+
* self-hosted or enterprise deployments; omit to use Ethora's.
|
|
575
|
+
*/
|
|
576
|
+
apiUrl?: string;
|
|
466
577
|
iconPath?: string;
|
|
467
578
|
badgePath?: string;
|
|
468
579
|
onClick?: (params: {
|
|
@@ -503,6 +614,59 @@ export interface IConfig {
|
|
|
503
614
|
messageType: 'text' | 'media';
|
|
504
615
|
}) => void;
|
|
505
616
|
};
|
|
617
|
+
/**
|
|
618
|
+
* LiveKit-backed 1:1 audio and video calls. Off unless `enabled` is
|
|
619
|
+
* explicitly `true`. Requires the native peer dependencies
|
|
620
|
+
* `@livekit/react-native` and `@livekit/react-native-webrtc`, plus
|
|
621
|
+
* microphone/camera permissions and the background audio modes listed
|
|
622
|
+
* in the README. Expo Go cannot run these, the host app needs a dev
|
|
623
|
+
* build or a prebuilt binary.
|
|
624
|
+
*/
|
|
625
|
+
videoCalls?: VideoCallsConfig;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Override the icons used by the in-call control bar and the incoming-call
|
|
629
|
+
* ring screen. Each value is any React node. When omitted, the chat's
|
|
630
|
+
* built-in icon is used. The mic/camera/screen-share toggles take separate
|
|
631
|
+
* on/off icons so the host can express active vs muted however they like.
|
|
632
|
+
*/
|
|
633
|
+
export interface VideoCallIcons {
|
|
634
|
+
micOn?: React.ReactNode;
|
|
635
|
+
micOff?: React.ReactNode;
|
|
636
|
+
cameraOn?: React.ReactNode;
|
|
637
|
+
cameraOff?: React.ReactNode;
|
|
638
|
+
screenShareOn?: React.ReactNode;
|
|
639
|
+
screenShareOff?: React.ReactNode;
|
|
640
|
+
hangup?: React.ReactNode;
|
|
641
|
+
accept?: React.ReactNode;
|
|
642
|
+
decline?: React.ReactNode;
|
|
643
|
+
}
|
|
644
|
+
export interface VideoCallsConfig {
|
|
645
|
+
enabled: boolean;
|
|
646
|
+
livekitUrl: string;
|
|
647
|
+
allowedRoomTypes?: Array<'private'>;
|
|
648
|
+
/**
|
|
649
|
+
* Show the audio-only call button next to the video-call button. Off by
|
|
650
|
+
* default: it's a separate opt-in feature. An audio call uses the same
|
|
651
|
+
* call backend as video (no server changes needed); the client just
|
|
652
|
+
* starts the session with `kind: 'audio'` so no camera track is
|
|
653
|
+
* published, and the callee learns the kind from the direct
|
|
654
|
+
* `call-invite` signal. Requires `enabled` and a `livekitUrl` like
|
|
655
|
+
* video calls.
|
|
656
|
+
*/
|
|
657
|
+
enableAudioCalls?: boolean;
|
|
658
|
+
/** Start a video call with the camera already on. Default true. */
|
|
659
|
+
startWithCameraOn?: boolean;
|
|
660
|
+
/** Start a call with the microphone already on. Default true. */
|
|
661
|
+
startWithMicOn?: boolean;
|
|
662
|
+
/**
|
|
663
|
+
* Show the screen-share control. Default false on React Native: screen
|
|
664
|
+
* capture needs a foreground service on Android and a Broadcast Upload
|
|
665
|
+
* Extension on iOS, neither of which the SDK can add to a host app.
|
|
666
|
+
*/
|
|
667
|
+
showScreenShare?: boolean;
|
|
668
|
+
/** Custom icons for the call control bar / ring screen. */
|
|
669
|
+
icons?: VideoCallIcons;
|
|
506
670
|
}
|
|
507
671
|
interface ConfigRoom {
|
|
508
672
|
jid: string;
|