quickblox-react-ui-kit 0.5.1 → 0.5.2
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/.claude/settings.local.json +15 -0
- package/dist/App.d.ts +1 -0
- package/dist/CommonTypes/BaseViewModel.d.ts +2 -1
- package/dist/CommonTypes/CommonTypes.d.ts +1 -0
- package/dist/CommonTypes/FunctionResult.d.ts +1 -0
- package/dist/Data/Creator.d.ts +1 -0
- package/dist/Data/DefaultConfigurations.d.ts +1 -0
- package/dist/Data/Stubs.d.ts +1 -0
- package/dist/Data/dto/dialog/LocalDialogDTO.d.ts +1 -0
- package/dist/Data/dto/dialog/LocalDialogsDTO.d.ts +1 -0
- package/dist/Data/dto/dialog/RemoteDialogDTO.d.ts +1 -0
- package/dist/Data/dto/dialog/RemoteDialogsDTO.d.ts +1 -0
- package/dist/Data/dto/file/LocalFileDTO.d.ts +1 -0
- package/dist/Data/dto/file/RemoteFileDTO.d.ts +1 -0
- package/dist/Data/dto/message/LocalMessageDTO.d.ts +1 -0
- package/dist/Data/dto/message/LocalMessagesDTO.d.ts +1 -0
- package/dist/Data/dto/message/RemoteMessageDTO.d.ts +1 -0
- package/dist/Data/dto/message/RemoteMessagesDTO.d.ts +1 -0
- package/dist/Data/dto/user/LocalUserDTO.d.ts +1 -0
- package/dist/Data/dto/user/LocalUsersDTO.d.ts +1 -0
- package/dist/Data/dto/user/RemoteUserDTO.d.ts +1 -0
- package/dist/Data/dto/user/RemoteUsersDTO.d.ts +1 -0
- package/dist/Data/mapper/DialogLocalDTOMapper.d.ts +1 -0
- package/dist/Data/mapper/DialogRemoteDTOMapper.d.ts +1 -0
- package/dist/Data/mapper/FileLocalDTOMapper.d.ts +1 -0
- package/dist/Data/mapper/FileRemoteDTOMapper.d.ts +1 -0
- package/dist/Data/mapper/IMapper.d.ts +1 -0
- package/dist/Data/mapper/MessageLocalDTOMapper.d.ts +1 -0
- package/dist/Data/mapper/MessageRemoteDTOMapper.d.ts +1 -0
- package/dist/Data/mapper/UserLocalDTOMapper.d.ts +1 -0
- package/dist/Data/mapper/UserRemoteDTOMapper.d.ts +1 -0
- package/dist/Data/repository/ConnectionRepository.d.ts +1 -0
- package/dist/Data/repository/ConnectionRepository.d.ts.map +1 -1
- package/dist/Data/repository/DialogsRepository.d.ts +1 -0
- package/dist/Data/repository/EventMessagesRepository.d.ts +1 -0
- package/dist/Data/repository/FileRepository.d.ts +1 -0
- package/dist/Data/repository/MessagesRepository.d.ts +1 -0
- package/dist/Data/repository/UsersRepository.d.ts +1 -0
- package/dist/Data/source/AISource.d.ts +1 -0
- package/dist/Data/source/exception/LocalDataSourceException.d.ts +1 -0
- package/dist/Data/source/exception/MapperDTOException.d.ts +1 -0
- package/dist/Data/source/exception/RemoteDataSourceException.d.ts +1 -0
- package/dist/Data/source/exception/RepositoryException.d.ts +1 -0
- package/dist/Data/source/local/ChatLocalStorageDataSource.d.ts +1 -0
- package/dist/Data/source/local/ILocalDataSource.d.ts +1 -0
- package/dist/Data/source/local/ILocalFileDataSource.d.ts +1 -0
- package/dist/Data/source/local/LocalDataSource.d.ts +1 -0
- package/dist/Data/source/local/LocalFileDataSource.d.ts +1 -0
- package/dist/Data/source/remote/IRemoteDataSource.d.ts +1 -0
- package/dist/Data/source/remote/Mapper/DialogDTOMapper.d.ts +1 -0
- package/dist/Data/source/remote/Mapper/FileDTOMapper.d.ts +1 -0
- package/dist/Data/source/remote/Mapper/IDTOMapper.d.ts +1 -0
- package/dist/Data/source/remote/Mapper/MessageDTOMapper.d.ts +2 -0
- package/dist/Data/source/remote/Mapper/MessageDTOMapper.d.ts.map +1 -1
- package/dist/Data/source/remote/Mapper/UserDTOMapper.d.ts +1 -0
- package/dist/Data/source/remote/RemoteDataSource.d.ts +1 -0
- package/dist/Domain/entity/Chat.d.ts +1 -0
- package/dist/Domain/entity/ChatMessageAttachmentEntity.d.ts +1 -0
- package/dist/Domain/entity/CustomDataEntity.d.ts +1 -0
- package/dist/Domain/entity/DialogEntity.d.ts +1 -0
- package/dist/Domain/entity/DialogEventInfo.d.ts +1 -0
- package/dist/Domain/entity/DialogTypes.d.ts +1 -0
- package/dist/Domain/entity/EventMessageType.d.ts +1 -0
- package/dist/Domain/entity/FileEntity.d.ts +1 -0
- package/dist/Domain/entity/FileTypes.d.ts +1 -0
- package/dist/Domain/entity/GroupDialogEntity.d.ts +1 -0
- package/dist/Domain/entity/LastMessageEntity.d.ts +1 -0
- package/dist/Domain/entity/MessageEntity.d.ts +1 -0
- package/dist/Domain/entity/NotificationTypes.d.ts +1 -0
- package/dist/Domain/entity/PrivateDialogEntity.d.ts +1 -0
- package/dist/Domain/entity/PublicDialogEntity.d.ts +1 -0
- package/dist/Domain/entity/UserEntity.d.ts +1 -0
- package/dist/Domain/exception/domain/DomainExecption.d.ts +1 -0
- package/dist/Domain/repository/IDialogsRepository.d.ts +1 -0
- package/dist/Domain/repository/IFileRepository.d.ts +1 -0
- package/dist/Domain/repository/IMessagesRepository.d.ts +1 -0
- package/dist/Domain/repository/IUsersRepository.d.ts +1 -0
- package/dist/Domain/repository/Pagination.d.ts +1 -0
- package/dist/Domain/use_cases/CreateDialogUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/ForwardMessagesUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/GetAllDialogsUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/GetAllDialogsUseCaseWithMock.d.ts +1 -0
- package/dist/Domain/use_cases/GetAllMessagesForDialog.d.ts +1 -0
- package/dist/Domain/use_cases/GetAllUsersUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/GetDialogByIdUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/GetUsersByIdsUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/LeaveDialogUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/RemoveUsersFromTheDialogUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/ReplyMessagesUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/SendTextMessageUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/SubscribeToDialogEventsUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/SubscribeToDialogsUpdatesUseCaseWithMock.d.ts +1 -0
- package/dist/Domain/use_cases/SyncDialogsUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/SyncDialogsUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/UpdateDialogUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/UploadFileUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/UserTypingMessageUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/UserTypingMessageUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/ai/AIAnswerAssistUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/ai/AIAnswerAssistWithProxyUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/ai/AIAnswerAssistWithSDKUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/ai/AIRephraseUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/ai/AIRephraseWithProxyUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/ai/AITranslateUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/ai/AITranslateWithProxyUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/ai/AITranslateWithSDKUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/base/BaseUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/base/IUseCase.d.ts +1 -0
- package/dist/Domain/use_cases/base/Subscribable/ISubscribable.d.ts +1 -0
- package/dist/Domain/use_cases/base/Subscribable/SubscriptionPerformer.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIComponents/AIAssistComponent/AIAssistComponent.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIComponents/AITranslateComponent/AITranslateComponent.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIWidgets/AIMessageWidget.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.d.ts +2 -1
- package/dist/Presentation/Views/Dialog/AIWidgets/ErrorMessageIcon.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIWidgets/SliderMenu.d.ts +2 -1
- package/dist/Presentation/Views/Dialog/AIWidgets/Tone.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIWidgets/UseDefaultAIAssistAnswerWidget.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIWidgets/UseDefaultAIAssistAnswerWidgetWithProxy.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIWidgets/UseDefaultAIAssistAnswerWidgetWithSDK.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIWidgets/UseDefaultAIRephraseMessageWidget.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIWidgets/UseDefaultAIRephraseMessageWidgetWithProxy.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIWidgets/UseDefaultAITranslateWidget.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIWidgets/UseDefaultAITranslateWidgetWithProxy.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIWidgets/UseDefaultAITranslateWidgetWithSDK.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/AIWidgets/useDefaultVoiceInputWidget.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/ContextMenu/ContextMenu.d.ts +2 -1
- package/dist/Presentation/Views/Dialog/Dialog.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/DialogHeader/DialogBackIcon/DialogBackIcon.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/DialogHeader/DialogHeader.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/DialogHeader/DialogInfoIcon/DialogInfoIcon.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/DialogViewModel.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/DropDownMenu/DropDownMenu.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/ErrorToast/ErrorToast.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogsWithSearch.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/SearchComponent/SearchComponent.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessagePreview/ForwardMessagePreview.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/InputMessage/InputMessage.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/Message/HighLightLink/HighLightLink.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/Message/IncomingForwardedMessage/IncomingForwardedMessage.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/Message/IncomingMessage/AvatarContentIncomingUser/AvatarContentIncomingUser.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/Message/IncomingMessage/IncomingMessage.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/Message/IncomingMessage/MessageContentComponent/MessageContentComponent.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/Message/IncomingRepliedMessage/IncomingRepliedMessage.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/Message/Message.d.ts +2 -1
- package/dist/Presentation/Views/Dialog/Message/MessageAttachment/AudioAttachment/AudioAttachment.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/Message/MessageAttachment/DefaultAttachment/DefaultAttachment.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/Message/MessageAttachment/ImageAttachment/ImageAttachment.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/Message/MessageAttachment/MessageAttachment.d.ts +2 -1
- package/dist/Presentation/Views/Dialog/Message/MessageAttachment/VideoAttachment/VideoAttachment.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/Message/MessageContextMenu/MessageContextMenu.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/Message/OutgoinForwardedMessage/OutgoinForwardedMessage.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/Message/OutgoingMessage/OutgoingMessage.d.ts +2 -1
- package/dist/Presentation/Views/Dialog/Message/OutgoingRepliedMessage/OutgoingRepliedMessage.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/MessageContextMenu/MessageContextMenu.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/MessageItem/MessageItem.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/SystemDateBanner/SystemDateBanner.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/SystemMessageBanner/SystemMessageBanner.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/VoiceMessage/VoiceMessage.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/useDialogViewModel.d.ts +1 -0
- package/dist/Presentation/Views/DialogInfo/DialogInfo.d.ts +1 -1
- package/dist/Presentation/Views/DialogInfo/DialogMemberButton/DialogMembersButton.d.ts +1 -0
- package/dist/Presentation/Views/DialogInfo/MembersList/MembersList.d.ts +1 -0
- package/dist/Presentation/Views/DialogInfo/UsersList/SingleUser/SingleUser.d.ts +1 -0
- package/dist/Presentation/Views/DialogInfo/UsersList/UsersList.d.ts +1 -1
- package/dist/Presentation/Views/DialogInfo/UsersList/UsersListViewModel.d.ts +1 -0
- package/dist/Presentation/Views/DialogInfo/UsersList/useUsersListViewModel.d.ts +1 -0
- package/dist/Presentation/Views/DialogList/DialogList.d.ts +1 -1
- package/dist/Presentation/Views/DialogList/DialogListViewModel.d.ts +1 -0
- package/dist/Presentation/Views/DialogList/useDialogListViewModel.d.ts +1 -0
- package/dist/Presentation/Views/DialogListHeader/DialogListHeader.d.ts +1 -0
- package/dist/Presentation/Views/EditDialog/EditDialog.d.ts +1 -0
- package/dist/Presentation/Views/EditDialog/UserAvatar/UserAvatar.d.ts +1 -0
- package/dist/Presentation/Views/Flow/CreateDialog/CreateDialog.d.ts +1 -0
- package/dist/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.d.ts +1 -0
- package/dist/Presentation/Views/Flow/LeaveDialogFlow/LeaveDialogFlow.d.ts +1 -0
- package/dist/Presentation/Views/InviteMembers/InviteMembers.d.ts +1 -0
- package/dist/Presentation/Views/InviteMembers/InviteMembersViewModel.d.ts +1 -0
- package/dist/Presentation/Views/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.d.ts +1 -0
- package/dist/Presentation/Views/InviteMembers/InviteUsersResultViewModel.d.ts +1 -0
- package/dist/Presentation/Views/InviteMembers/NotFoundContent/NotFoundContent.d.ts +1 -0
- package/dist/Presentation/Views/InviteMembers/useInviteMembersViewModel.d.ts +1 -0
- package/dist/Presentation/Views/PreviewDialog/PreviewDialog.d.ts +2 -1
- package/dist/Presentation/Views/PreviewDialog/PreviewDialogContextMenu/PreviewDialogContextMenu.d.ts +1 -0
- package/dist/Presentation/Views/PreviewDialog/PreviewDialogViewModel.d.ts +1 -0
- package/dist/Presentation/Views/YesNoQuestion/YesNoQuestion.d.ts +1 -0
- package/dist/Presentation/components/Navbar.d.ts +1 -0
- package/dist/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.d.ts +1 -1
- package/dist/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.d.ts +1 -1
- package/dist/Presentation/components/UI/Buttons/MainButton/MainButton.d.ts +1 -1
- package/dist/Presentation/components/UI/Elements/SwitchButton/SwitchButton.d.ts +1 -1
- package/dist/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.d.ts +1 -0
- package/dist/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.d.ts +1 -1
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/AIWidget/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/BookIcon/BookIcon.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/BotIcon/BotIcon.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/HammerIcon/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/HandshakeIcon/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/MuscleIcon/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/NecktieIcon/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/NeutralFaceIcon/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/PalmsUpTogetherIcon/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/PerformingArtsIcon/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/PointUpIcon/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/SmileyIcon/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/SmirkIcon/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/AIWidgets/WhiteCheckMarkIcon/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Add/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/AddContact/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Archive/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/AssistAnswer/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Copy/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Delete/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Download/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Edit/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/EditDots/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Emoji/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Hungup/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Like/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/NewChat/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Phone/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Remove/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Remove2/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Send/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Share/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Summarize/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Tone/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Unarchive/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Voice/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/Brodcast/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/Chat/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/Conference/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/Contact/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/GroupChat/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/Notifications/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/Stream/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/User/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/IconsCommonTypes.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/Attachment/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/AudioFile/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/BrokenFile/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/Camera/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/GifFile/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/ImageFile/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/ImageFilled/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/LinkWeb/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/Location/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/Translate/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/VideoFile/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Moderation/Admin/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Moderation/Banned/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Moderation/Freeze/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Moderation/Moderations/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Moderation/Muted/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Back/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Close/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Down/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Leave/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/More/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Next/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Plus/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Refresh/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Search/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Settings/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/Error/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/Help/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/Information/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/InformationFill/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/Loader/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/Mention/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/Sent/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Favourite/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/inex.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Hide/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Louder/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/MicOff/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/MicOn/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Minimize/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Pause/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Quite/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Record/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Show/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Speaker/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/index.d.ts +1 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/StopShare/index.d.ts +1 -0
- package/dist/Presentation/components/containers/ColumnContainer/ColumnContainer.d.ts +1 -0
- package/dist/Presentation/components/containers/RowCenterContainer/RowCenterContainer.d.ts +1 -1
- package/dist/Presentation/components/containers/RowLeftContainer/RowLeftContainer.d.ts +1 -1
- package/dist/Presentation/components/containers/RowRightContainer/RowRightContainer.d.ts +1 -1
- package/dist/Presentation/components/containers/ScrollableContainer/ScrollableContainer.d.ts +1 -1
- package/dist/Presentation/components/containers/SectionList/hooks/createUseComponent.d.ts +1 -0
- package/dist/Presentation/components/containers/SectionList/hooks/index.d.ts +1 -0
- package/dist/Presentation/components/containers/SectionList/hooks/useMobileLayout.d.ts +1 -0
- package/dist/Presentation/components/containers/SectionList/hooks/usePrevious.d.ts +1 -0
- package/dist/Presentation/components/containers/SectionList/hooks/useVisibility.d.ts +1 -0
- package/dist/Presentation/components/containers/SectionList/index.d.ts +1 -0
- package/dist/Presentation/components/containers/SectionList/useComponent.d.ts +1 -1
- package/dist/Presentation/icons/actions/index.d.ts +1 -0
- package/dist/Presentation/icons/contents/index.d.ts +1 -0
- package/dist/Presentation/icons/index.d.ts +1 -0
- package/dist/Presentation/icons/media/index.d.ts +1 -0
- package/dist/Presentation/icons/moderation/index.d.ts +1 -0
- package/dist/Presentation/icons/navigation/index.d.ts +1 -0
- package/dist/Presentation/icons/status/index.d.ts +1 -0
- package/dist/Presentation/icons/toggle/index.d.ts +1 -0
- package/dist/Presentation/layouts/Desktop/DesktopLayout.d.ts +1 -1
- package/dist/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.d.ts +1 -0
- package/dist/Presentation/layouts/LayoutCommonTypes.d.ts +1 -1
- package/dist/Presentation/layouts/TestStage/CompanyLogo/CompanyLogo.d.ts +1 -1
- package/dist/Presentation/layouts/TestStage/LoginView/Login.d.ts +1 -0
- package/dist/Presentation/providers/ProviderProps.d.ts +1 -1
- package/dist/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.d.ts +1 -1
- package/dist/Presentation/providers/QuickBloxUIKitProvider/useEventMessagesRepository.d.ts +1 -0
- package/dist/Presentation/providers/QuickBloxUIKitProvider/useQBConnection.d.ts +1 -0
- package/dist/Presentation/providers/QuickBloxUIKitProvider/useQbInitializedDataContext.d.ts +1 -0
- package/dist/Presentation/providers/QuickBloxUIKitProvider/useQbUIKitDataContext.d.ts +1 -0
- package/dist/Presentation/themes/DarkTheme.d.ts +1 -0
- package/dist/Presentation/themes/DefaultThemes/CustomTheme.d.ts +1 -0
- package/dist/Presentation/themes/DefaultThemes/DefaultTheme.d.ts +1 -0
- package/dist/Presentation/themes/LightTheme.d.ts +1 -0
- package/dist/Presentation/themes/ThemeScheme.d.ts +1 -0
- package/dist/Presentation/themes/UiKitTheme.d.ts +1 -0
- package/dist/Presentation/ui-components/Avatar/Avatar.d.ts +1 -1
- package/dist/Presentation/ui-components/Badge/Badge.d.ts +1 -0
- package/dist/Presentation/ui-components/Badge/Badge.stories.d.ts +1 -0
- package/dist/Presentation/ui-components/Button/Button.d.ts +1 -1
- package/dist/Presentation/ui-components/Button/Button.stories.d.ts +1 -0
- package/dist/Presentation/ui-components/CheckBox/CheckBox.d.ts +1 -0
- package/dist/Presentation/ui-components/DialogBanner/DialogBanner.d.ts +1 -0
- package/dist/Presentation/ui-components/DialogBanner/DialogBanner.stories.d.ts +1 -0
- package/dist/Presentation/ui-components/DialogItemPreview/DialogItemPreview.d.ts +1 -1
- package/dist/Presentation/ui-components/DialogWindow/DialogWindow.d.ts +1 -1
- package/dist/Presentation/ui-components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/Presentation/ui-components/Dropdown/DropdownOption.d.ts +1 -1
- package/dist/Presentation/ui-components/Header/Header.d.ts +1 -1
- package/dist/Presentation/ui-components/Loader/Loader.d.ts +1 -0
- package/dist/Presentation/ui-components/Loader/Loader.stories.d.ts +1 -0
- package/dist/Presentation/ui-components/Message/Bubble/AttachmentBubble/AttachmentBubble.d.ts +1 -0
- package/dist/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.d.ts +1 -0
- package/dist/Presentation/ui-components/Message/Bubble/FileBubble/FileBubble.d.ts +1 -0
- package/dist/Presentation/ui-components/Message/Bubble/ImageBubble/ImageBubble.d.ts +1 -0
- package/dist/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.d.ts +1 -0
- package/dist/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.d.ts +1 -0
- package/dist/Presentation/ui-components/Message/FileUrl/FileUrl.d.ts +1 -0
- package/dist/Presentation/ui-components/Message/Message.d.ts +1 -1
- package/dist/Presentation/ui-components/Message/MessageCaption/MessageCaption.d.ts +1 -0
- package/dist/Presentation/ui-components/Message/TimeAndStatus/TimeAndStatus.d.ts +1 -0
- package/dist/Presentation/ui-components/MessageInput/AttachmentUploader/AttachmentUploader.d.ts +1 -1
- package/dist/Presentation/ui-components/MessageInput/MessageInput.d.ts +1 -1
- package/dist/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.d.ts +1 -0
- package/dist/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyMessagePreview.d.ts +1 -0
- package/dist/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.d.ts +1 -0
- package/dist/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.d.ts.map +1 -1
- package/dist/Presentation/ui-components/MessageSeparator/MessageSeparator.d.ts +1 -0
- package/dist/Presentation/ui-components/MessageSeparator/MessageSeparator.stories.d.ts +1 -0
- package/dist/Presentation/ui-components/Placeholder/Placeholder.d.ts +1 -1
- package/dist/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.d.ts +1 -0
- package/dist/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.stories.d.ts +1 -0
- package/dist/Presentation/ui-components/SettingsItem/SettingsItem.d.ts +1 -1
- package/dist/Presentation/ui-components/TextField/TextField.d.ts +1 -1
- package/dist/Presentation/ui-components/TextField/TextField.stories.d.ts +1 -0
- package/dist/Presentation/ui-components/Toast/ToastProvider.d.ts +1 -1
- package/dist/Presentation/ui-components/UserListItem/UserListItem.d.ts +1 -0
- package/dist/Presentation/ui-components/index.d.ts +1 -0
- package/dist/QBconfig.d.ts +1 -0
- package/dist/hooks/useModal.d.ts +1 -0
- package/dist/hooks/useQuickBloxUIKit.d.ts +1 -1
- package/dist/index-ui.d.ts +1 -0
- package/dist/index-ui.js +43359 -58620
- package/dist/index.d.ts +1 -0
- package/dist/qb-api-calls/index.d.ts +1 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/utils/DateTimeFormatter.d.ts +1 -0
- package/dist/utils/formatFileSize.d.ts +1 -0
- package/dist/utils/parse.d.ts +1 -0
- package/dist/utils/utils.d.ts +1 -0
- package/package.json +14 -8
- package/src/Data/repository/ConnectionRepository.ts +3 -2
- package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +39 -22
- package/src/Domain/use_cases/SyncDialogsUseCase.ts +3 -3
- package/src/Domain/use_cases/UserTypingMessageUseCase.ts +4 -2
- package/src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.tsx +24 -8
- package/storybook-static/161.77e7dbc5.iframe.bundle.js +2 -0
- package/storybook-static/217.cb8da73c.iframe.bundle.js +408 -0
- package/storybook-static/217.cb8da73c.iframe.bundle.js.map +1 -0
- package/storybook-static/263.f039edee.iframe.bundle.js +2 -0
- package/storybook-static/294.7ed84cb5.iframe.bundle.js +1 -0
- package/storybook-static/338.ed5286bb.iframe.bundle.js +2 -0
- package/storybook-static/363.fe646024.iframe.bundle.js +2 -0
- package/storybook-static/{363.f6fcc1b9.iframe.bundle.js.LICENSE.txt → 363.fe646024.iframe.bundle.js.LICENSE.txt} +0 -7
- package/storybook-static/364.fb3fc9b4.iframe.bundle.js +1 -0
- package/storybook-static/488.a47f0de8.iframe.bundle.js +1 -0
- package/storybook-static/559.fdf11e08.iframe.bundle.js +2 -0
- package/storybook-static/618.ab5566c8.iframe.bundle.js +1 -0
- package/storybook-static/844.5804474b.iframe.bundle.js +95 -0
- package/storybook-static/844.5804474b.iframe.bundle.js.map +1 -0
- package/storybook-static/936.ba75ae44.iframe.bundle.js +1 -0
- package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.6977856e.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Badge-Badge-stories.d77c6500.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Button-Button-stories.05f2f5b7.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.118df514.iframe.bundle.js +1 -0
- package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.e9d3dc6b.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.7d74bffa.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.d92e6904.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Header-Header-stories.b9a00187.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Loader-Loader-stories.f484b131.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Message-Message-stories.66867b7e.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.d72f098b.iframe.bundle.js +1 -0
- package/storybook-static/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.7d9e0991.iframe.bundle.js +1 -0
- package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.1e6bd1cd.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.44c68c03.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.3e87329b.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-TextField-TextField-stories.ec3e7d5f.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Toast-Toast-stories.2721621c.iframe.bundle.js +1 -0
- package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.33b23eab.iframe.bundle.js +2 -0
- package/storybook-static/docs-Introduction-mdx.416f8bf9.iframe.bundle.js +1 -0
- package/storybook-static/docs-Styling-mdx.c119b271.iframe.bundle.js +1 -0
- package/storybook-static/iframe.html +5 -3
- package/storybook-static/main.bfaba8e3.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/runtime~main.b1ec3380.iframe.bundle.js +1 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +27 -27
- package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +74 -71
- package/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js +73 -70
- package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/interactions-11/manager-bundle.js +6 -6
- package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +18 -18
- package/storybook-static/sb-manager/globals-runtime.js +10691 -11043
- package/storybook-static/sb-preview/runtime.js +238 -238
- package/dist/Presentation/components/Button.d.ts +0 -4
- package/dist/Presentation/components/TextInput.d.ts +0 -1
- package/dist/Presentation/ui-components/Avatar/avatar.stories.d.ts +0 -8
- package/dist/Presentation/ui-components/DialogItemPreview/DialogItemPreview.stories.d.ts +0 -9
- package/dist/Presentation/ui-components/DialogWindow/DialogWindow.stories.d.ts +0 -6
- package/dist/Presentation/ui-components/Dropdown/Dropdown.stories.d.ts +0 -28
- package/dist/Presentation/ui-components/Header/Header.stories.d.ts +0 -9
- package/dist/Presentation/ui-components/Message/Message.stories.d.ts +0 -8
- package/dist/Presentation/ui-components/MessageInput/MessageInput.stories.d.ts +0 -8
- package/dist/Presentation/ui-components/Placeholder/Placeholder.stories.d.ts +0 -7
- package/dist/Presentation/ui-components/SettingsItem/SettingsItem.stories.d.ts +0 -8
- package/dist/Presentation/ui-components/Toast/Toast.stories.d.ts +0 -6
- package/dist/Presentation/ui-components/UserListItem/UserListItem.stories.d.ts +0 -86
- package/storybook-static/161.53da4e03.iframe.bundle.js +0 -2
- package/storybook-static/167.88fc69a9.iframe.bundle.js +0 -1
- package/storybook-static/217.f067a49f.iframe.bundle.js +0 -405
- package/storybook-static/217.f067a49f.iframe.bundle.js.map +0 -1
- package/storybook-static/294.b81cdbca.iframe.bundle.js +0 -1
- package/storybook-static/363.f6fcc1b9.iframe.bundle.js +0 -2
- package/storybook-static/364.988cd801.iframe.bundle.js +0 -1
- package/storybook-static/488.3cd3942e.iframe.bundle.js +0 -1
- package/storybook-static/559.9e64a6f5.iframe.bundle.js +0 -2
- package/storybook-static/735.6ee62079.iframe.bundle.js +0 -2
- package/storybook-static/844.be4346f2.iframe.bundle.js +0 -95
- package/storybook-static/844.be4346f2.iframe.bundle.js.map +0 -1
- package/storybook-static/936.8546c1d8.iframe.bundle.js +0 -1
- package/storybook-static/961.d47fc2bc.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.a5ba7608.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Badge-Badge-stories.c8824861.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Button-Button-stories.fa2aa72c.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.cd797979.iframe.bundle.js +0 -1
- package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.b6998344.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.46997cb0.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.a03feb06.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Header-Header-stories.a4edfcc6.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Loader-Loader-stories.4e80520d.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Message-Message-stories.213a90f6.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.2af0de55.iframe.bundle.js +0 -1
- package/storybook-static/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.b927d1e1.iframe.bundle.js +0 -1
- package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.34dfadb1.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.9b4eff15.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.e7f5a274.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-TextField-TextField-stories.969cfe2e.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Toast-Toast-stories.4f00432b.iframe.bundle.js +0 -1
- package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.1713eab7.iframe.bundle.js +0 -2
- package/storybook-static/docs-Introduction-mdx.5addfa61.iframe.bundle.js +0 -1
- package/storybook-static/docs-Styling-mdx.9f4235f1.iframe.bundle.js +0 -1
- package/storybook-static/main.59f682e8.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.26de4dfd.iframe.bundle.js +0 -1
- /package/storybook-static/{161.53da4e03.iframe.bundle.js.LICENSE.txt → 161.77e7dbc5.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{217.f067a49f.iframe.bundle.js.LICENSE.txt → 217.cb8da73c.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{961.d47fc2bc.iframe.bundle.js.LICENSE.txt → 263.f039edee.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{735.6ee62079.iframe.bundle.js.LICENSE.txt → 338.ed5286bb.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{559.9e64a6f5.iframe.bundle.js.LICENSE.txt → 559.fdf11e08.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{844.be4346f2.iframe.bundle.js.LICENSE.txt → 844.5804474b.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Avatar-avatar-stories.a5ba7608.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Avatar-avatar-stories.6977856e.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Badge-Badge-stories.c8824861.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Badge-Badge-stories.d77c6500.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Button-Button-stories.fa2aa72c.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Button-Button-stories.05f2f5b7.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.b6998344.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.e9d3dc6b.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-DialogWindow-DialogWindow-stories.46997cb0.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-DialogWindow-DialogWindow-stories.7d74bffa.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Dropdown-Dropdown-stories.a03feb06.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Dropdown-Dropdown-stories.d92e6904.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Header-Header-stories.a4edfcc6.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Header-Header-stories.b9a00187.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Loader-Loader-stories.4e80520d.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Loader-Loader-stories.f484b131.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Message-Message-stories.213a90f6.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Message-Message-stories.66867b7e.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Placeholder-Placeholder-stories.34dfadb1.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Placeholder-Placeholder-stories.1e6bd1cd.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.9b4eff15.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.44c68c03.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-SettingsItem-SettingsItem-stories.e7f5a274.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-SettingsItem-SettingsItem-stories.3e87329b.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-TextField-TextField-stories.969cfe2e.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-TextField-TextField-stories.ec3e7d5f.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-UserListItem-UserListItem-stories.1713eab7.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-UserListItem-UserListItem-stories.33b23eab.iframe.bundle.js.LICENSE.txt} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -79,3 +79,4 @@ export declare function QBChatMarkMessageDelivered(params: QBMessageStatusParams
|
|
|
79
79
|
export declare function QBWebRTCSessionGetUserMedia(session: QBWebRTCSession, params: QBMediaParams): Promise<MediaStream | undefined>;
|
|
80
80
|
export declare function QBAnswerAssist(smartChatAssistantId: string, messageToAssist: string, history: AIChatHistory): Promise<AIAnswerResponse>;
|
|
81
81
|
export declare function QBTranslate(smartChatAssistantId: string, textToTranslate: string, languageCode: string): Promise<AIAnswerResponse>;
|
|
82
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/setupTests.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export declare const getTimeShort24hFormat: (dateTimeToFormat: number) => string
|
|
|
4
4
|
export declare const getDateForDialog: (dateTimeToFormat: number) => string;
|
|
5
5
|
export declare const formatShortTime3: (dateTimeToFormat: number) => string;
|
|
6
6
|
export declare const formatShortTime4: (dateTimeToFormat: number) => string;
|
|
7
|
+
//# sourceMappingURL=DateTimeFormatter.d.ts.map
|
package/dist/utils/parse.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export declare const parseErrorMessage: (message: string) => string;
|
|
|
5
5
|
export declare function isQBError(error: unknown): error is QBError;
|
|
6
6
|
export declare function stringifyError(error: unknown): string;
|
|
7
7
|
export declare const isSessionDoesNotExistError: (error: string) => boolean;
|
|
8
|
+
//# sourceMappingURL=parse.d.ts.map
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -10,3 +10,4 @@ export declare class AIUtils {
|
|
|
10
10
|
static createRephrasePrompt(textToSend: string, tone?: Tone): string;
|
|
11
11
|
static messageEntitiesToIChatMessageCollection(messageEntities: MessageEntity[], currentUserId: number | undefined, MAX_TOKENS?: number): IChatMessage[];
|
|
12
12
|
}
|
|
13
|
+
//# sourceMappingURL=utils.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quickblox-react-ui-kit",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"main": "dist/index-ui.js",
|
|
5
5
|
"types": "dist/index-ui.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"@types/react": "^18.0.26",
|
|
9
9
|
"@types/react-dom": "^18.0.9",
|
|
10
10
|
"classnames": "^2.3.2",
|
|
11
|
+
"media-recorder-js": "^2.1.0",
|
|
11
12
|
"qb-ai-answer-assistant": "^0.1.2",
|
|
12
13
|
"qb-ai-core": "^0.1.3",
|
|
13
14
|
"qb-ai-rephrase": "^0.1.2",
|
|
14
15
|
"qb-ai-translate": "^0.1.2",
|
|
15
|
-
"quickblox": "
|
|
16
|
-
"media-recorder-js": "^2.1.0",
|
|
16
|
+
"quickblox": "2.22.0-alpha.1",
|
|
17
17
|
"react": "^19.0.0",
|
|
18
18
|
"react-dom": "^19.0.0",
|
|
19
19
|
"react-router-dom": "^6.11.1",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"@testing-library/react": "^16.2.0",
|
|
43
43
|
"@testing-library/user-event": "^14.6.1",
|
|
44
44
|
"@types/jest": "^27.5.2",
|
|
45
|
-
"@types/node": "^20.17.
|
|
45
|
+
"@types/node": "^20.17.30",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
46
47
|
"@typescript-eslint/eslint-plugin-tslint": "^5.45.1",
|
|
47
48
|
"@typescript-eslint/parser": "^5.45.1",
|
|
48
49
|
"babel-loader": "^9.2.1",
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
"eslint-plugin-storybook": "^0.11.3",
|
|
64
65
|
"file-loader": "^6.2.0",
|
|
65
66
|
"html-webpack-plugin": "^5.6.3",
|
|
67
|
+
"jest": "^30.2.0",
|
|
66
68
|
"mini-css-extract-plugin": "^2.9.2",
|
|
67
69
|
"path-browserify": "^1.0.1",
|
|
68
70
|
"prettier": "^2.8.0",
|
|
@@ -75,15 +77,16 @@
|
|
|
75
77
|
"ts-loader": "^9.4.2",
|
|
76
78
|
"url-loader": "^4.1.1",
|
|
77
79
|
"web-vitals": "^2.1.4",
|
|
78
|
-
"webpack": "^5.
|
|
79
|
-
"webpack-cli": "^
|
|
80
|
-
"webpack-dev-server": "^
|
|
80
|
+
"webpack": "^5.105.2",
|
|
81
|
+
"webpack-cli": "^6.0.1",
|
|
82
|
+
"webpack-dev-server": "^5.2.3"
|
|
81
83
|
},
|
|
82
84
|
"scripts": {
|
|
83
85
|
"start": "webpack serve --config webpack.app.config.js --mode development",
|
|
86
|
+
"build": "npm run build:app",
|
|
84
87
|
"build:app": "webpack --config webpack.app.config.js --mode production",
|
|
85
88
|
"build:lib": "webpack --config webpack.lib.config.js --mode production",
|
|
86
|
-
"test": "jest",
|
|
89
|
+
"test": "jest --passWithNoTests",
|
|
87
90
|
"lint": "eslint ./src",
|
|
88
91
|
"format": "prettier --write .",
|
|
89
92
|
"storybook": "storybook dev -p 6006",
|
|
@@ -101,6 +104,9 @@
|
|
|
101
104
|
"plugin:storybook/recommended"
|
|
102
105
|
]
|
|
103
106
|
},
|
|
107
|
+
"engines": {
|
|
108
|
+
"node": ">=20"
|
|
109
|
+
},
|
|
104
110
|
"browserslist": {
|
|
105
111
|
"production": [
|
|
106
112
|
">0.2%",
|
|
@@ -3,7 +3,7 @@ import { stringifyError } from '../../utils/parse';
|
|
|
3
3
|
import { getQB } from '../../qb-api-calls';
|
|
4
4
|
|
|
5
5
|
export default class ConnectionRepository extends SubscriptionPerformer<boolean> {
|
|
6
|
-
private timerId:
|
|
6
|
+
private timerId: ReturnType<typeof setInterval> | undefined;
|
|
7
7
|
|
|
8
8
|
private _needInit: boolean;
|
|
9
9
|
|
|
@@ -97,7 +97,8 @@ export default class ConnectionRepository extends SubscriptionPerformer<boolean>
|
|
|
97
97
|
|
|
98
98
|
public stopKeepAlive() {
|
|
99
99
|
if (this.timerId) {
|
|
100
|
-
|
|
100
|
+
clearInterval(this.timerId);
|
|
101
|
+
this.timerId = undefined;
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
|
|
@@ -14,6 +14,16 @@ type DtoValidator<T> = {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export class MessageDTOMapper implements IDTOMapper {
|
|
17
|
+
private static normalizeUidToString(
|
|
18
|
+
uid: string | number | undefined,
|
|
19
|
+
): string | undefined {
|
|
20
|
+
if (uid === undefined || uid === null) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return String(uid);
|
|
25
|
+
}
|
|
26
|
+
|
|
17
27
|
// eslint-disable-next-line class-methods-use-this
|
|
18
28
|
fromDTO<TArg, TResult>(dto: TArg): Promise<TResult> {
|
|
19
29
|
const messageDTO: RemoteMessageDTO = dto as RemoteMessageDTO;
|
|
@@ -46,20 +56,24 @@ export class MessageDTOMapper implements IDTOMapper {
|
|
|
46
56
|
) {
|
|
47
57
|
const result: ChatMessageAttachmentEntity[] = qbAtts.map((item) => {
|
|
48
58
|
const QB = getQB();
|
|
59
|
+
const normalizedUid = MessageDTOMapper.normalizeUidToString(item.uid);
|
|
60
|
+
const normalizedUrl = normalizedUid
|
|
61
|
+
? QB.content.privateUrl(normalizedUid)
|
|
62
|
+
: undefined;
|
|
49
63
|
const newItem: ChatMessageAttachmentEntity = {
|
|
50
64
|
id: item.id,
|
|
51
65
|
name: item.name,
|
|
52
66
|
size: item.size,
|
|
53
67
|
type: item.type,
|
|
54
|
-
uid:
|
|
55
|
-
url:
|
|
68
|
+
uid: normalizedUid,
|
|
69
|
+
url: normalizedUrl,
|
|
56
70
|
file: {
|
|
57
71
|
id: item.id,
|
|
58
72
|
name: item.name,
|
|
59
73
|
size: item.size,
|
|
60
74
|
type: item.type,
|
|
61
|
-
uid:
|
|
62
|
-
url:
|
|
75
|
+
uid: normalizedUid || '',
|
|
76
|
+
url: normalizedUrl,
|
|
63
77
|
},
|
|
64
78
|
};
|
|
65
79
|
const messageParts = MessageDTOMapper.getMessageParts(qbMessage);
|
|
@@ -73,11 +87,16 @@ export class MessageDTOMapper implements IDTOMapper {
|
|
|
73
87
|
newItem.name = messageParts[1];
|
|
74
88
|
// eslint-disable-next-line prefer-destructuring
|
|
75
89
|
newItem.type = messageParts[3];
|
|
76
|
-
|
|
90
|
+
const parsedUid = MessageDTOMapper.normalizeUidToString(newItem.uid);
|
|
91
|
+
|
|
92
|
+
newItem.uid = parsedUid;
|
|
93
|
+
newItem.url = parsedUid ? QB.content.privateUrl(parsedUid) : undefined;
|
|
77
94
|
if (newItem.file) {
|
|
78
|
-
newItem.file.uid =
|
|
95
|
+
newItem.file.uid = parsedUid || '';
|
|
79
96
|
newItem.file.name = newItem.name;
|
|
80
|
-
newItem.file.url =
|
|
97
|
+
newItem.file.url = parsedUid
|
|
98
|
+
? QB.content.privateUrl(parsedUid)
|
|
99
|
+
: undefined;
|
|
81
100
|
newItem.file.type = newItem.type;
|
|
82
101
|
}
|
|
83
102
|
}
|
|
@@ -143,7 +162,6 @@ export class MessageDTOMapper implements IDTOMapper {
|
|
|
143
162
|
console.error(e);
|
|
144
163
|
}
|
|
145
164
|
|
|
146
|
-
|
|
147
165
|
dto.id = qbMessage._id;
|
|
148
166
|
dto.dialogId = qbMessage.chat_dialog_id;
|
|
149
167
|
dto.message = qbMessage.message; // MessageDTOMapper.formatMessage(qbMessage.message);
|
|
@@ -200,21 +218,20 @@ export class MessageDTOMapper implements IDTOMapper {
|
|
|
200
218
|
// size: attachment.size || 0,
|
|
201
219
|
// };
|
|
202
220
|
// }
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
221
|
+
public static convertAttachment(
|
|
222
|
+
attachment: ChatMessageAttachmentEntity,
|
|
223
|
+
): ChatMessageAttachment {
|
|
224
|
+
return {
|
|
225
|
+
id: attachment.id.toString(),
|
|
226
|
+
uid: attachment.uid?.toString() || '',
|
|
227
|
+
type: attachment.type.toString(),
|
|
228
|
+
url: attachment.url?.toString() || '',
|
|
229
|
+
name: attachment.name?.toString() || '',
|
|
230
|
+
size: attachment.size?.toString() || '',
|
|
231
|
+
} as ChatMessageAttachment;
|
|
232
|
+
}
|
|
216
233
|
|
|
217
|
-
|
|
234
|
+
public static convertToQBChatNewMessage(
|
|
218
235
|
messages: RemoteMessageDTO[],
|
|
219
236
|
): QBChatMessage[] {
|
|
220
237
|
return messages.map((message) => {
|
|
@@ -15,9 +15,9 @@ export class SyncDialogsUseCase extends BaseUseCase<boolean, boolean> {
|
|
|
15
15
|
|
|
16
16
|
private callBackExecute: CallBackFunction<boolean> | undefined;
|
|
17
17
|
|
|
18
|
-
private timer1Id:
|
|
18
|
+
private timer1Id: ReturnType<typeof setTimeout> | undefined;
|
|
19
19
|
|
|
20
|
-
private timer2Id:
|
|
20
|
+
private timer2Id: ReturnType<typeof setTimeout> | undefined;
|
|
21
21
|
|
|
22
22
|
private timerId: NodeJS.Timeout | null = null;
|
|
23
23
|
|
|
@@ -170,7 +170,7 @@ export class SyncDialogsUseCase extends BaseUseCase<boolean, boolean> {
|
|
|
170
170
|
override release() {
|
|
171
171
|
super.release();
|
|
172
172
|
if (this.timerId) {
|
|
173
|
-
clearInterval(this.timerId
|
|
173
|
+
clearInterval(this.timerId);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -11,7 +11,7 @@ export class UserTypingMessageUseCase implements IUseCase<void, void> {
|
|
|
11
11
|
|
|
12
12
|
private typingTimeout = 3;
|
|
13
13
|
|
|
14
|
-
private _typingTimer:
|
|
14
|
+
private _typingTimer: ReturnType<typeof setInterval> | null = null;
|
|
15
15
|
|
|
16
16
|
private _typingTime = 0;
|
|
17
17
|
|
|
@@ -36,7 +36,9 @@ export class UserTypingMessageUseCase implements IUseCase<void, void> {
|
|
|
36
36
|
this._typingTimer = setInterval(() => {
|
|
37
37
|
if ((Date.now() - this._typingTime) / 1000 >= this.typingTimeout) {
|
|
38
38
|
this.messagesRepository.typingMessageStop(this.dialog, this.senderId);
|
|
39
|
-
|
|
39
|
+
if (this._typingTimer) {
|
|
40
|
+
clearInterval(this._typingTimer);
|
|
41
|
+
}
|
|
40
42
|
this._typingTimer = null;
|
|
41
43
|
this._typingTime = 0;
|
|
42
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
1
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
2
2
|
import './VoiceRecordingProgress.scss';
|
|
3
3
|
import { FunctionTypeVoidToVoid } from '../../../../CommonTypes/BaseViewModel';
|
|
4
4
|
|
|
@@ -15,7 +15,8 @@ const VoiceRecordingProgress = ({
|
|
|
15
15
|
onClick,
|
|
16
16
|
onTouch,
|
|
17
17
|
}: VoiceRecordingProgressProps) => {
|
|
18
|
-
|
|
18
|
+
const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
19
|
+
const intervalRef = useRef<ReturnType<typeof setInterval> | null>(null);
|
|
19
20
|
const [currentTime, setCurrentTime] = useState(Date.now());
|
|
20
21
|
const [timeString, setTimeString] = useState('00:00:00');
|
|
21
22
|
const [startTime] = useState(Date.now());
|
|
@@ -33,9 +34,13 @@ const VoiceRecordingProgress = ({
|
|
|
33
34
|
}, [currentTime]);
|
|
34
35
|
|
|
35
36
|
const stopTimer = () => {
|
|
36
|
-
if (
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
if (timeoutRef.current) {
|
|
38
|
+
clearTimeout(timeoutRef.current);
|
|
39
|
+
timeoutRef.current = null;
|
|
40
|
+
}
|
|
41
|
+
if (intervalRef.current) {
|
|
42
|
+
clearInterval(intervalRef.current);
|
|
43
|
+
intervalRef.current = null;
|
|
39
44
|
}
|
|
40
45
|
if (onClick) onClick();
|
|
41
46
|
if (onTouch) onTouch();
|
|
@@ -45,12 +50,12 @@ const VoiceRecordingProgress = ({
|
|
|
45
50
|
const startTimer = () => {
|
|
46
51
|
const longRec = longRecInSec <= 60 && longRecInSec > 0 ? longRecInSec : 10;
|
|
47
52
|
|
|
48
|
-
setTimeout(() => {
|
|
53
|
+
timeoutRef.current = setTimeout(() => {
|
|
49
54
|
stopTimer();
|
|
50
55
|
}, longRec * 1000);
|
|
51
56
|
|
|
52
|
-
if (!
|
|
53
|
-
|
|
57
|
+
if (!intervalRef.current) {
|
|
58
|
+
intervalRef.current = setInterval(() => {
|
|
54
59
|
setCurrentTime(Date.now());
|
|
55
60
|
}, 1000);
|
|
56
61
|
}
|
|
@@ -58,6 +63,17 @@ const VoiceRecordingProgress = ({
|
|
|
58
63
|
|
|
59
64
|
useEffect(() => {
|
|
60
65
|
if (startStatus) startTimer();
|
|
66
|
+
|
|
67
|
+
return () => {
|
|
68
|
+
if (timeoutRef.current) {
|
|
69
|
+
clearTimeout(timeoutRef.current);
|
|
70
|
+
timeoutRef.current = null;
|
|
71
|
+
}
|
|
72
|
+
if (intervalRef.current) {
|
|
73
|
+
clearInterval(intervalRef.current);
|
|
74
|
+
intervalRef.current = null;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
61
77
|
}, [startStatus]);
|
|
62
78
|
|
|
63
79
|
return (
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 161.77e7dbc5.iframe.bundle.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[161],{"./node_modules/react-dom/cjs/react-dom-test-utils.production.js"(__unused_webpack_module,exports,__webpack_require__){var React=__webpack_require__("./node_modules/react/index.js"),didWarnAboutUsingAct=!1;exports.act=function(callback){return!1===didWarnAboutUsingAct&&(didWarnAboutUsingAct=!0,console.error("`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.")),React.act(callback)}},"./node_modules/react-dom/test-utils.js"(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__("./node_modules/react-dom/cjs/react-dom-test-utils.production.js")}}]);
|