quickblox-react-ui-kit 0.4.1 → 0.4.2-beta.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/dist/Presentation/ui-components/TextField/TextField.d.ts +1 -1
- package/dist/index-ui.d.ts +2 -1
- package/dist/index-ui.js +21 -0
- package/dist/index-ui.js.map +1 -1
- package/package.json +2 -2
- package/.storybook/main.ts +0 -26
- package/.storybook/preview.ts +0 -16
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -47
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/quickblox.js +0 -54609
- package/public/robots.txt +0 -3
- package/src/App.scss +0 -3
- package/src/App.tsx +0 -232
- package/src/CommonTypes/BaseViewModel.ts +0 -95
- package/src/CommonTypes/CommonTypes.ts +0 -260
- package/src/CommonTypes/FunctionResult.ts +0 -7
- package/src/Data/Creator.ts +0 -105
- package/src/Data/DefaultConfigurations.ts +0 -277
- package/src/Data/Stubs.ts +0 -1241
- package/src/Data/dto/dialog/LocalDialogDTO.ts +0 -42
- package/src/Data/dto/dialog/LocalDialogsDTO.ts +0 -21
- package/src/Data/dto/dialog/RemoteDialogDTO.ts +0 -58
- package/src/Data/dto/dialog/RemoteDialogsDTO.ts +0 -21
- package/src/Data/dto/file/LocalFileDTO.ts +0 -26
- package/src/Data/dto/file/RemoteFileDTO.ts +0 -26
- package/src/Data/dto/message/LocalMessageDTO.ts +0 -49
- package/src/Data/dto/message/LocalMessagesDTO.ts +0 -21
- package/src/Data/dto/message/RemoteMessageDTO.ts +0 -57
- package/src/Data/dto/message/RemoteMessagesDTO.ts +0 -21
- package/src/Data/dto/user/LocalUserDTO.ts +0 -37
- package/src/Data/dto/user/LocalUsersDTO.ts +0 -21
- package/src/Data/dto/user/RemoteUserDTO.ts +0 -37
- package/src/Data/dto/user/RemoteUsersDTO.ts +0 -21
- package/src/Data/mapper/DialogLocalDTOMapper.ts +0 -736
- package/src/Data/mapper/DialogRemoteDTOMapper.ts +0 -736
- package/src/Data/mapper/FileLocalDTOMapper.ts +0 -216
- package/src/Data/mapper/FileRemoteDTOMapper.ts +0 -230
- package/src/Data/mapper/IMapper.ts +0 -4
- package/src/Data/mapper/MessageLocalDTOMapper.ts +0 -426
- package/src/Data/mapper/MessageRemoteDTOMapper.ts +0 -465
- package/src/Data/mapper/UserLocalDTOMapper.ts +0 -387
- package/src/Data/mapper/UserRemoteDTOMapper.ts +0 -398
- package/src/Data/repository/ConnectionRepository.ts +0 -135
- package/src/Data/repository/DialogsRepository.ts +0 -374
- package/src/Data/repository/EventMessagesRepository.ts +0 -325
- package/src/Data/repository/FileRepository.ts +0 -107
- package/src/Data/repository/MessagesRepository.ts +0 -291
- package/src/Data/repository/UsersRepository.ts +0 -297
- package/src/Data/source/AISource.ts +0 -133
- package/src/Data/source/exception/LocalDataSourceException.ts +0 -17
- package/src/Data/source/exception/MapperDTOException.ts +0 -22
- package/src/Data/source/exception/RemoteDataSourceException.ts +0 -28
- package/src/Data/source/exception/RepositoryException.ts +0 -27
- package/src/Data/source/local/ChatLocalStorageDataSource.ts +0 -260
- package/src/Data/source/local/ILocalDataSource.ts +0 -41
- package/src/Data/source/local/ILocalFileDataSource.ts +0 -11
- package/src/Data/source/local/LocalDataSource.ts +0 -353
- package/src/Data/source/local/LocalFileDataSource.ts +0 -20
- package/src/Data/source/remote/IRemoteDataSource.ts +0 -127
- package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +0 -443
- package/src/Data/source/remote/Mapper/FileDTOMapper.ts +0 -274
- package/src/Data/source/remote/Mapper/IDTOMapper.ts +0 -4
- package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +0 -608
- package/src/Data/source/remote/Mapper/UserDTOMapper.ts +0 -344
- package/src/Data/source/remote/RemoteDataSource.ts +0 -1503
- package/src/Domain/entity/Chat.ts +0 -4
- package/src/Domain/entity/ChatMessageAttachmentEntity.ts +0 -15
- package/src/Domain/entity/CustomDataEntity.ts +0 -3
- package/src/Domain/entity/DialogEntity.ts +0 -15
- package/src/Domain/entity/DialogEventInfo.ts +0 -19
- package/src/Domain/entity/DialogTypes.ts +0 -7
- package/src/Domain/entity/EventMessageType.ts +0 -7
- package/src/Domain/entity/FileEntity.ts +0 -11
- package/src/Domain/entity/FileTypes.ts +0 -9
- package/src/Domain/entity/GroupDialogEntity.ts +0 -54
- package/src/Domain/entity/LastMessageEntity.ts +0 -5
- package/src/Domain/entity/MessageEntity.ts +0 -25
- package/src/Domain/entity/NotificationTypes.ts +0 -9
- package/src/Domain/entity/PrivateDialogEntity.ts +0 -46
- package/src/Domain/entity/PublicDialogEntity.ts +0 -80
- package/src/Domain/entity/UserEntity.ts +0 -13
- package/src/Domain/exception/domain/DomainExecption.ts +0 -5
- package/src/Domain/repository/IDialogsRepository.ts +0 -42
- package/src/Domain/repository/IFileRepository.ts +0 -9
- package/src/Domain/repository/IMessagesRepository.ts +0 -28
- package/src/Domain/repository/IUsersRepository.ts +0 -13
- package/src/Domain/repository/Pagination.ts +0 -48
- package/src/Domain/use_cases/CreateDialogUseCase.ts +0 -79
- package/src/Domain/use_cases/ForwardMessagesUseCase.ts +0 -73
- package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -20
- package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -40
- package/src/Domain/use_cases/GetAllMessagesForDialog.ts +0 -61
- package/src/Domain/use_cases/GetAllUsersUseCase.ts +0 -34
- package/src/Domain/use_cases/GetDialogByIdUseCase.ts +0 -32
- package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +0 -22
- package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -116
- package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -118
- package/src/Domain/use_cases/ReplyMessagesUseCase.ts +0 -35
- package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -27
- package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -160
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -68
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCaseWithMock.ts +0 -45
- package/src/Domain/use_cases/SyncDialogsUseCase.ts +0 -177
- package/src/Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase.ts +0 -31
- package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -77
- package/src/Domain/use_cases/UploadFileUseCase.ts +0 -24
- package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -50
- package/src/Domain/use_cases/ai/AIAnswerAssistUseCase.ts +0 -69
- package/src/Domain/use_cases/ai/AIAnswerAssistWithProxyUseCase.ts +0 -57
- package/src/Domain/use_cases/ai/AIAnswerAssistWithSDKUseCase.ts +0 -50
- package/src/Domain/use_cases/ai/AIRephraseUseCase.ts +0 -89
- package/src/Domain/use_cases/ai/AIRephraseWithProxyUseCase.ts +0 -62
- package/src/Domain/use_cases/ai/AITranslateUseCase.ts +0 -76
- package/src/Domain/use_cases/ai/AITranslateWithProxyUseCase.ts +0 -63
- package/src/Domain/use_cases/ai/AITranslateWithSDKUseCase.ts +0 -107
- package/src/Domain/use_cases/base/BaseUseCase.ts +0 -77
- package/src/Domain/use_cases/base/IUseCase.ts +0 -5
- package/src/Domain/use_cases/base/Subscribable/ISubscribable.ts +0 -6
- package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +0 -144
- package/src/Presentation/.gitkeep +0 -0
- package/src/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.scss +0 -39
- package/src/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.tsx +0 -71
- package/src/Presentation/Views/Dialog/AIComponents/AIAssistComponent/AIAssistComponent.scss +0 -32
- package/src/Presentation/Views/Dialog/AIComponents/AIAssistComponent/AIAssistComponent.tsx +0 -28
- package/src/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.scss +0 -77
- package/src/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.tsx +0 -126
- package/src/Presentation/Views/Dialog/AIComponents/AITranslateComponent/AITranslateComponent.scss +0 -47
- package/src/Presentation/Views/Dialog/AIComponents/AITranslateComponent/AITranslateComponent.tsx +0 -78
- package/src/Presentation/Views/Dialog/AIWidgets/AIMessageWidget.ts +0 -40
- package/src/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.scss +0 -25
- package/src/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.tsx +0 -186
- package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.scss +0 -55
- package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.tsx +0 -122
- package/src/Presentation/Views/Dialog/AIWidgets/ErrorMessageIcon.tsx +0 -98
- package/src/Presentation/Views/Dialog/AIWidgets/SliderMenu.tsx +0 -172
- package/src/Presentation/Views/Dialog/AIWidgets/Tone.ts +0 -21
- package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAIAssistAnswerWidget.tsx +0 -72
- package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAIAssistAnswerWidgetWithProxy.tsx +0 -72
- package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAIAssistAnswerWidgetWithSDK.tsx +0 -74
- package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAIRephraseMessageWidget.tsx +0 -96
- package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAIRephraseMessageWidgetWithProxy.tsx +0 -94
- package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAITranslateWidget.tsx +0 -78
- package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAITranslateWidgetWithProxy.tsx +0 -78
- package/src/Presentation/Views/Dialog/AIWidgets/UseDefaultAITranslateWidgetWithSDK.tsx +0 -70
- package/src/Presentation/Views/Dialog/AIWidgets/useDefaultVoiceInputWidget.tsx +0 -88
- package/src/Presentation/Views/Dialog/ContextMenu/ContextMenu.scss +0 -58
- package/src/Presentation/Views/Dialog/ContextMenu/ContextMenu.tsx +0 -93
- package/src/Presentation/Views/Dialog/Dialog.scss +0 -368
- package/src/Presentation/Views/Dialog/Dialog.tsx +0 -100
- package/src/Presentation/Views/Dialog/DialogHeader/DialogBackIcon/DialogBackIcon.scss +0 -29
- package/src/Presentation/Views/Dialog/DialogHeader/DialogBackIcon/DialogBackIcon.tsx +0 -34
- package/src/Presentation/Views/Dialog/DialogHeader/DialogHeader.scss +0 -114
- package/src/Presentation/Views/Dialog/DialogHeader/DialogHeader.tsx +0 -51
- package/src/Presentation/Views/Dialog/DialogHeader/DialogInfoIcon/DialogInfoIcon.scss +0 -53
- package/src/Presentation/Views/Dialog/DialogHeader/DialogInfoIcon/DialogInfoIcon.tsx +0 -58
- package/src/Presentation/Views/Dialog/DialogViewModel.ts +0 -26
- package/src/Presentation/Views/Dialog/DropDownMenu/DropDownMenu.scss +0 -84
- package/src/Presentation/Views/Dialog/DropDownMenu/DropDownMenu.tsx +0 -105
- package/src/Presentation/Views/Dialog/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.scss +0 -50
- package/src/Presentation/Views/Dialog/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.tsx +0 -43
- package/src/Presentation/Views/Dialog/ErrorToast/ErrorToast.scss +0 -26
- package/src/Presentation/Views/Dialog/ErrorToast/ErrorToast.tsx +0 -23
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.scss +0 -74
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.tsx +0 -96
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogsWithSearch.scss +0 -50
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogsWithSearch.tsx +0 -97
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/SearchComponent/SearchComponent.scss +0 -98
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/SearchComponent/SearchComponent.tsx +0 -65
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.scss +0 -159
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.tsx +0 -122
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessagePreview/ForwardMessagePreview.scss +0 -100
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessagePreview/ForwardMessagePreview.tsx +0 -90
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.scss +0 -95
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.tsx +0 -47
- package/src/Presentation/Views/Dialog/InputMessage/InputMessage.scss +0 -92
- package/src/Presentation/Views/Dialog/InputMessage/InputMessage.tsx +0 -145
- package/src/Presentation/Views/Dialog/Message/HighLightLink/HighLightLink.scss +0 -97
- package/src/Presentation/Views/Dialog/Message/HighLightLink/HighLightLink.tsx +0 -114
- package/src/Presentation/Views/Dialog/Message/IncomingForwardedMessage/IncomingForwardedMessage.scss +0 -250
- package/src/Presentation/Views/Dialog/Message/IncomingForwardedMessage/IncomingForwardedMessage.tsx +0 -290
- package/src/Presentation/Views/Dialog/Message/IncomingMessage/AvatarContentIncomingUser/AvatarContentIncomingUser.scss +0 -22
- package/src/Presentation/Views/Dialog/Message/IncomingMessage/AvatarContentIncomingUser/AvatarContentIncomingUser.tsx +0 -32
- package/src/Presentation/Views/Dialog/Message/IncomingMessage/IncomingMessage.scss +0 -241
- package/src/Presentation/Views/Dialog/Message/IncomingMessage/IncomingMessage.tsx +0 -316
- package/src/Presentation/Views/Dialog/Message/IncomingMessage/MessageContentComponent/MessageContentComponent.scss +0 -4
- package/src/Presentation/Views/Dialog/Message/IncomingMessage/MessageContentComponent/MessageContentComponent.tsx +0 -67
- package/src/Presentation/Views/Dialog/Message/IncomingRepliedMessage/IncomingRepliedMessage.scss +0 -250
- package/src/Presentation/Views/Dialog/Message/IncomingRepliedMessage/IncomingRepliedMessage.tsx +0 -298
- package/src/Presentation/Views/Dialog/Message/Message.tsx +0 -378
- package/src/Presentation/Views/Dialog/Message/MessageAttachment/AudioAttachment/AudioAttachment.scss +0 -31
- package/src/Presentation/Views/Dialog/Message/MessageAttachment/AudioAttachment/AudioAttachment.tsx +0 -155
- package/src/Presentation/Views/Dialog/Message/MessageAttachment/DefaultAttachment/DefaultAttachment.scss +0 -76
- package/src/Presentation/Views/Dialog/Message/MessageAttachment/DefaultAttachment/DefaultAttachment.tsx +0 -50
- package/src/Presentation/Views/Dialog/Message/MessageAttachment/ImageAttachment/ImageAttachment.scss +0 -14
- package/src/Presentation/Views/Dialog/Message/MessageAttachment/ImageAttachment/ImageAttachment.tsx +0 -50
- package/src/Presentation/Views/Dialog/Message/MessageAttachment/MessageAttachment.tsx +0 -92
- package/src/Presentation/Views/Dialog/Message/MessageAttachment/VideoAttachment/VideoAttachment.scss +0 -18
- package/src/Presentation/Views/Dialog/Message/MessageAttachment/VideoAttachment/VideoAttachment.tsx +0 -58
- package/src/Presentation/Views/Dialog/Message/MessageContextMenu/MessageContextMenu.scss +0 -10
- package/src/Presentation/Views/Dialog/Message/MessageContextMenu/MessageContextMenu.tsx +0 -61
- package/src/Presentation/Views/Dialog/Message/OutgoinForwardedMessage/OutgoinForwardedMessage.scss +0 -160
- package/src/Presentation/Views/Dialog/Message/OutgoinForwardedMessage/OutgoinForwardedMessage.tsx +0 -133
- package/src/Presentation/Views/Dialog/Message/OutgoingMessage/OutgoingMessage.scss +0 -122
- package/src/Presentation/Views/Dialog/Message/OutgoingMessage/OutgoingMessage.tsx +0 -104
- package/src/Presentation/Views/Dialog/Message/OutgoingRepliedMessage/OutgoingRepliedMessage.scss +0 -155
- package/src/Presentation/Views/Dialog/Message/OutgoingRepliedMessage/OutgoingRepliedMessage.tsx +0 -103
- package/src/Presentation/Views/Dialog/MessageContextMenu/MessageContextMenu.scss +0 -19
- package/src/Presentation/Views/Dialog/MessageContextMenu/MessageContextMenu.tsx +0 -78
- package/src/Presentation/Views/Dialog/MessageItem/MessageItem.scss +0 -21
- package/src/Presentation/Views/Dialog/MessageItem/MessageItem.tsx +0 -378
- package/src/Presentation/Views/Dialog/SystemDateBanner/SystemDateBanner.scss +0 -23
- package/src/Presentation/Views/Dialog/SystemDateBanner/SystemDateBanner.tsx +0 -17
- package/src/Presentation/Views/Dialog/SystemMessageBanner/SystemMessageBanner.scss +0 -21
- package/src/Presentation/Views/Dialog/SystemMessageBanner/SystemMessageBanner.tsx +0 -17
- package/src/Presentation/Views/Dialog/VoiceMessage/VoiceMessage.tsx +0 -21
- package/src/Presentation/Views/Dialog/useDialogViewModel.ts +0 -765
- package/src/Presentation/Views/DialogInfo/DialogInfo.scss +0 -237
- package/src/Presentation/Views/DialogInfo/DialogInfo.tsx +0 -495
- package/src/Presentation/Views/DialogInfo/DialogMemberButton/DialogMembersButton.scss +0 -42
- package/src/Presentation/Views/DialogInfo/DialogMemberButton/DialogMembersButton.tsx +0 -26
- package/src/Presentation/Views/DialogInfo/MembersList/MembersList.scss +0 -85
- package/src/Presentation/Views/DialogInfo/MembersList/MembersList.tsx +0 -74
- package/src/Presentation/Views/DialogInfo/UsersList/SingleUser/SingleUser.scss +0 -66
- package/src/Presentation/Views/DialogInfo/UsersList/SingleUser/SingleUser.tsx +0 -71
- package/src/Presentation/Views/DialogInfo/UsersList/UsersList.scss +0 -0
- package/src/Presentation/Views/DialogInfo/UsersList/UsersList.tsx +0 -71
- package/src/Presentation/Views/DialogInfo/UsersList/UsersListViewModel.ts +0 -15
- package/src/Presentation/Views/DialogInfo/UsersList/useUsersListViewModel.ts +0 -125
- package/src/Presentation/Views/DialogList/DialogList.scss +0 -150
- package/src/Presentation/Views/DialogList/DialogList.tsx +0 -407
- package/src/Presentation/Views/DialogList/DialogListViewModel.ts +0 -25
- package/src/Presentation/Views/DialogList/useDialogListViewModel.ts +0 -579
- package/src/Presentation/Views/DialogListHeader/DialogListHeader.scss +0 -68
- package/src/Presentation/Views/DialogListHeader/DialogListHeader.tsx +0 -90
- package/src/Presentation/Views/EditDialog/EditDialog.scss +0 -175
- package/src/Presentation/Views/EditDialog/EditDialog.tsx +0 -273
- package/src/Presentation/Views/EditDialog/UserAvatar/UserAvatar.scss +0 -32
- package/src/Presentation/Views/EditDialog/UserAvatar/UserAvatar.tsx +0 -59
- package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.scss +0 -93
- package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.tsx +0 -69
- package/src/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.tsx +0 -191
- package/src/Presentation/Views/Flow/LeaveDialogFlow/LeaveDialogFlow.tsx +0 -37
- package/src/Presentation/Views/InviteMembers/InviteMembers.scss +0 -202
- package/src/Presentation/Views/InviteMembers/InviteMembers.tsx +0 -316
- package/src/Presentation/Views/InviteMembers/InviteMembersViewModel.ts +0 -18
- package/src/Presentation/Views/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.scss +0 -90
- package/src/Presentation/Views/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.tsx +0 -122
- package/src/Presentation/Views/InviteMembers/InviteUsersResultViewModel.ts +0 -12
- package/src/Presentation/Views/InviteMembers/NotFoundContent/NotFoundContent.scss +0 -38
- package/src/Presentation/Views/InviteMembers/NotFoundContent/NotFoundContent.tsx +0 -22
- package/src/Presentation/Views/InviteMembers/useInviteMembersViewModel.ts +0 -146
- package/src/Presentation/Views/Navigation/More.svg +0 -7
- package/src/Presentation/Views/PreviewDialog/PreviewDialog.scss +0 -211
- package/src/Presentation/Views/PreviewDialog/PreviewDialog.tsx +0 -332
- package/src/Presentation/Views/PreviewDialog/PreviewDialogContextMenu/PreviewDialogContextMenu.scss +0 -9
- package/src/Presentation/Views/PreviewDialog/PreviewDialogContextMenu/PreviewDialogContextMenu.tsx +0 -59
- package/src/Presentation/Views/PreviewDialog/PreviewDialogViewModel.ts +0 -42
- package/src/Presentation/Views/YesNoQuestion/YesNoQuestion.scss +0 -11
- package/src/Presentation/Views/YesNoQuestion/YesNoQuestion.tsx +0 -48
- package/src/Presentation/assets/fonts/.gitkeep +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.woff2 +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.woff2 +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.woff2 +0 -0
- package/src/Presentation/assets/img/Artem_Koltunov_Selfi.png +0 -0
- package/src/Presentation/assets/img/bee-img.png +0 -0
- package/src/Presentation/assets/img/web-doc.png +0 -0
- package/src/Presentation/components/Button.js +0 -5
- package/src/Presentation/components/Navbar.tsx +0 -45
- package/src/Presentation/components/TextInput.js +0 -10
- package/src/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.tsx +0 -40
- package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.scss +0 -0
- package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.tsx +0 -30
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.css +0 -103
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.tsx +0 -62
- package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.scss +0 -61
- package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.tsx +0 -48
- package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.scss +0 -74
- package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.tsx +0 -52
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss +0 -21
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.tsx +0 -44
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.scss +0 -3
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.tsx +0 -45
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/AIWidget/Send.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/AIWidget/index.tsx +0 -39
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/BookIcon/BookIcon.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/BotIcon/BotIcon.svg +0 -5
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/BotIcon/BotIcon.tsx +0 -50
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/HammerIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/HandshakeIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/MuscleIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/NecktieIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/NeutralFaceIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/PalmsUpTogetherIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/PerformingArtsIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/PointUpIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/SmileyIcon/index.tsx +0 -20
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/SmirkIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/WhiteCheckMarkIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Actions/Add/Add.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Add/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/Add contact.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/Archive.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/AssistAnswer/AssistAnswer.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/AssistAnswer/index.tsx +0 -93
- package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/Copy.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/Delete.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Download/Download.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Download/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/Edit.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/EditDots.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/Emoji.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/Forward filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/Hungup.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/Income call.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Like/Like.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Like/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/New chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/Outcome call.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/Phone.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/Phone filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/Remove.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/Remove2.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/Reply filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Send/Send.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Send/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Actions/Share/Share.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Share/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Summarize/Summarize.svg +0 -6
- package/src/Presentation/components/UI/svgs/Icons/Actions/Summarize/index.tsx +0 -58
- package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/Swap camera.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Tone/Tone.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Tone/index.tsx +0 -34
- package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/Unarchive.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/Video.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/Voice.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/Broadcast.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/Chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/Chat filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/Conference.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/Contact.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/Contact filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/Group chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/Notifications.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/Private chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/Public channel.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/index.tsx +0 -67
- package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/Stream.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/Stream filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/User/User.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/User/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/IconsCommonTypes.ts +0 -6
- package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/Attachment.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/Audio file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/Broken file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/Camera/Camera.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/Camera/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/GIF file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/Image.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/File.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/Image filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/Link.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/Location/Location.svg +0 -4
- package/src/Presentation/components/UI/svgs/Icons/Media/Location/index.tsx +0 -26
- package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/Text document.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/Translate/Translate.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/Translate/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/Video file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/Admin.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/Banned.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/Freeze.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/Moderations.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/Muted.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/Arrow left.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/Arrow right.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/Back.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/index.tsx +0 -34
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/Close.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/Down.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/Leave.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/More/More.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Navigation/More/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/Next.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/Plus.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/Refresh.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/index.tsx +0 -36
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/Search.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/Settings.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/Settings filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Error/Error.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Error/index.tsx +0 -36
- package/src/Presentation/components/UI/svgs/Icons/Status/Help/Help.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Help/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Information/Information.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Information/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/InformationFill/index.tsx +0 -40
- package/src/Presentation/components/UI/svgs/Icons/Status/Loader/Loader.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Loader/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Mention/Mention.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Mention/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Sent/Sent.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Sent/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/Viewed_Delivered.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/Camera off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/Camera on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/Check off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/Check on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/index.tsx +0 -24
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/Favourite.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/Favourite filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/Full screen.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/inex.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/Hide.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/Play.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/Louder.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/Mic off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/Mic on.svg +0 -4
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/index.tsx +0 -26
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/Minimize.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/Notify off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/Notify on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/Pause.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/Quite.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/Record.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/Screenshare.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/Show.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/Speaker.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/Speaker off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/Stop record.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/Stop share.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/index.tsx +0 -22
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.scss +0 -16
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.tsx +0 -27
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.scss +0 -45
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.tsx +0 -88
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.scss +0 -45
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.tsx +0 -90
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.scss +0 -46
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.tsx +0 -90
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.scss +0 -45
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.tsx +0 -102
- package/src/Presentation/components/containers/SectionList/hooks/createUseComponent.ts +0 -20
- package/src/Presentation/components/containers/SectionList/hooks/index.ts +0 -4
- package/src/Presentation/components/containers/SectionList/hooks/useMobileLayout.ts +0 -27
- package/src/Presentation/components/containers/SectionList/hooks/usePrevious.ts +0 -11
- package/src/Presentation/components/containers/SectionList/hooks/useVisibility.ts +0 -17
- package/src/Presentation/components/containers/SectionList/index.tsx +0 -52
- package/src/Presentation/components/containers/SectionList/styles.css +0 -50
- package/src/Presentation/components/containers/SectionList/useComponent.ts +0 -136
- package/src/Presentation/icons/actions/add-contact.svg +0 -3
- package/src/Presentation/icons/actions/add.svg +0 -3
- package/src/Presentation/icons/actions/archive.svg +0 -3
- package/src/Presentation/icons/actions/copy.svg +0 -3
- package/src/Presentation/icons/actions/delete.svg +0 -3
- package/src/Presentation/icons/actions/download.svg +0 -3
- package/src/Presentation/icons/actions/edit.svg +0 -3
- package/src/Presentation/icons/actions/emoji.svg +0 -3
- package/src/Presentation/icons/actions/forward-filled.svg +0 -3
- package/src/Presentation/icons/actions/hungup.svg +0 -3
- package/src/Presentation/icons/actions/income-call.svg +0 -3
- package/src/Presentation/icons/actions/index.ts +0 -26
- package/src/Presentation/icons/actions/like.svg +0 -3
- package/src/Presentation/icons/actions/new-chat.svg +0 -3
- package/src/Presentation/icons/actions/outcome-call.svg +0 -3
- package/src/Presentation/icons/actions/phone-filled.svg +0 -3
- package/src/Presentation/icons/actions/phone.svg +0 -3
- package/src/Presentation/icons/actions/remove-2.svg +0 -3
- package/src/Presentation/icons/actions/remove.svg +0 -3
- package/src/Presentation/icons/actions/rephrase.svg +0 -6
- package/src/Presentation/icons/actions/reply-filled.svg +0 -3
- package/src/Presentation/icons/actions/robot.svg +0 -5
- package/src/Presentation/icons/actions/send.svg +0 -3
- package/src/Presentation/icons/actions/share.svg +0 -3
- package/src/Presentation/icons/actions/swap-camera.svg +0 -3
- package/src/Presentation/icons/actions/translate.svg +0 -3
- package/src/Presentation/icons/actions/unarchive.svg +0 -3
- package/src/Presentation/icons/actions/video.svg +0 -3
- package/src/Presentation/icons/actions/voice.svg +0 -3
- package/src/Presentation/icons/contents/broadcast.svg +0 -7
- package/src/Presentation/icons/contents/chat-filled.svg +0 -3
- package/src/Presentation/icons/contents/chat.svg +0 -3
- package/src/Presentation/icons/contents/conference.svg +0 -3
- package/src/Presentation/icons/contents/contact-filled.svg +0 -3
- package/src/Presentation/icons/contents/contact.svg +0 -3
- package/src/Presentation/icons/contents/group-chat.svg +0 -3
- package/src/Presentation/icons/contents/index.ts +0 -13
- package/src/Presentation/icons/contents/notifications.svg +0 -3
- package/src/Presentation/icons/contents/private-chat.svg +0 -3
- package/src/Presentation/icons/contents/public-channel.svg +0 -7
- package/src/Presentation/icons/contents/stream-filled.svg +0 -3
- package/src/Presentation/icons/contents/stream.svg +0 -3
- package/src/Presentation/icons/contents/user.svg +0 -3
- package/src/Presentation/icons/index.ts +0 -7
- package/src/Presentation/icons/media/attachment.svg +0 -3
- package/src/Presentation/icons/media/audio-file.svg +0 -3
- package/src/Presentation/icons/media/broken-file.svg +0 -3
- package/src/Presentation/icons/media/camera.svg +0 -3
- package/src/Presentation/icons/media/file.svg +0 -3
- package/src/Presentation/icons/media/gif-file.svg +0 -3
- package/src/Presentation/icons/media/image-filled.svg +0 -3
- package/src/Presentation/icons/media/image.svg +0 -3
- package/src/Presentation/icons/media/index.ts +0 -12
- package/src/Presentation/icons/media/link.svg +0 -3
- package/src/Presentation/icons/media/location.svg +0 -4
- package/src/Presentation/icons/media/text-document.svg +0 -3
- package/src/Presentation/icons/media/video-file.svg +0 -3
- package/src/Presentation/icons/moderation/admin.svg +0 -3
- package/src/Presentation/icons/moderation/banned.svg +0 -3
- package/src/Presentation/icons/moderation/freeze.svg +0 -3
- package/src/Presentation/icons/moderation/index.ts +0 -5
- package/src/Presentation/icons/moderation/moderations.svg +0 -3
- package/src/Presentation/icons/moderation/muted.svg +0 -3
- package/src/Presentation/icons/navigation/arrow-left.svg +0 -3
- package/src/Presentation/icons/navigation/arrow-right.svg +0 -3
- package/src/Presentation/icons/navigation/back.svg +0 -3
- package/src/Presentation/icons/navigation/close.svg +0 -3
- package/src/Presentation/icons/navigation/down.svg +0 -3
- package/src/Presentation/icons/navigation/index.ts +0 -12
- package/src/Presentation/icons/navigation/leave.svg +0 -3
- package/src/Presentation/icons/navigation/more.svg +0 -3
- package/src/Presentation/icons/navigation/next.svg +0 -3
- package/src/Presentation/icons/navigation/plus.svg +0 -3
- package/src/Presentation/icons/navigation/refresh.svg +0 -3
- package/src/Presentation/icons/navigation/search.svg +0 -3
- package/src/Presentation/icons/navigation/settings-filled.svg +0 -3
- package/src/Presentation/icons/navigation/settings.svg +0 -3
- package/src/Presentation/icons/status/error.svg +0 -3
- package/src/Presentation/icons/status/help.svg +0 -3
- package/src/Presentation/icons/status/index.ts +0 -7
- package/src/Presentation/icons/status/information.svg +0 -3
- package/src/Presentation/icons/status/loader.svg +0 -3
- package/src/Presentation/icons/status/mention.svg +0 -3
- package/src/Presentation/icons/status/sent.svg +0 -3
- package/src/Presentation/icons/status/viewed-delivered.svg +0 -3
- package/src/Presentation/icons/toggle/camera-off.svg +0 -3
- package/src/Presentation/icons/toggle/camera-on.svg +0 -3
- package/src/Presentation/icons/toggle/check-off.svg +0 -3
- package/src/Presentation/icons/toggle/check-on.svg +0 -3
- package/src/Presentation/icons/toggle/favorite.svg +0 -3
- package/src/Presentation/icons/toggle/favourite.svg +0 -3
- package/src/Presentation/icons/toggle/full-screen.svg +0 -3
- package/src/Presentation/icons/toggle/hide.svg +0 -3
- package/src/Presentation/icons/toggle/index.ts +0 -23
- package/src/Presentation/icons/toggle/louder.svg +0 -3
- package/src/Presentation/icons/toggle/mic-off.svg +0 -3
- package/src/Presentation/icons/toggle/mic-on.svg +0 -4
- package/src/Presentation/icons/toggle/minimize.svg +0 -3
- package/src/Presentation/icons/toggle/notify-off.svg +0 -3
- package/src/Presentation/icons/toggle/notify-on.svg +0 -3
- package/src/Presentation/icons/toggle/pause.svg +0 -3
- package/src/Presentation/icons/toggle/play.svg +0 -3
- package/src/Presentation/icons/toggle/quite.svg +0 -3
- package/src/Presentation/icons/toggle/record.svg +0 -3
- package/src/Presentation/icons/toggle/screenshare.svg +0 -3
- package/src/Presentation/icons/toggle/show.svg +0 -3
- package/src/Presentation/icons/toggle/speaker off.svg +0 -3
- package/src/Presentation/icons/toggle/speaker-off.svg +0 -3
- package/src/Presentation/icons/toggle/speaker.svg +0 -3
- package/src/Presentation/icons/toggle/stop-record.svg +0 -3
- package/src/Presentation/icons/toggle/stop-share.svg +0 -3
- package/src/Presentation/layouts/Desktop/DesktopLayout.scss +0 -62
- package/src/Presentation/layouts/Desktop/DesktopLayout.tsx +0 -89
- package/src/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +0 -1354
- package/src/Presentation/layouts/LayoutCommonTypes.ts +0 -7
- package/src/Presentation/layouts/TestStage/CompanyLogo/CompanyLogo.tsx +0 -27
- package/src/Presentation/layouts/TestStage/LoginView/Login.scss +0 -72
- package/src/Presentation/layouts/TestStage/LoginView/Login.tsx +0 -91
- package/src/Presentation/providers/ProviderProps.ts +0 -5
- package/src/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +0 -375
- package/src/Presentation/providers/QuickBloxUIKitProvider/useEventMessagesRepository.ts +0 -10
- package/src/Presentation/providers/QuickBloxUIKitProvider/useQBConnection.ts +0 -54
- package/src/Presentation/providers/QuickBloxUIKitProvider/useQbInitializedDataContext.ts +0 -83
- package/src/Presentation/providers/QuickBloxUIKitProvider/useQbUIKitDataContext.ts +0 -11
- package/src/Presentation/themes/DarkTheme.ts +0 -58
- package/src/Presentation/themes/DefaultThemes/CustomTheme.ts +0 -58
- package/src/Presentation/themes/DefaultThemes/DefaultTheme.ts +0 -58
- package/src/Presentation/themes/LightTheme.ts +0 -58
- package/src/Presentation/themes/ThemeScheme.ts +0 -83
- package/src/Presentation/themes/UiKitTheme.ts +0 -37
- package/src/Presentation/themes/styles/_fonts.scss +0 -32
- package/src/Presentation/themes/styles/_mixins.scss +0 -6
- package/src/Presentation/themes/styles/_theme_colors_scheme.scss +0 -56
- package/src/Presentation/themes/styles/_theme_colors_scheme_green.scss +0 -57
- package/src/Presentation/themes/styles/_theme_colors_scheme_pink.scss +0 -72
- package/src/Presentation/themes/styles/_theme_dark.scss +0 -37
- package/src/Presentation/themes/styles/_theme_light.scss +0 -38
- package/src/Presentation/themes/styles/_variables.scss +0 -54
- package/src/Presentation/ui-components/Avatar/Avatar.scss +0 -58
- package/src/Presentation/ui-components/Avatar/Avatar.tsx +0 -30
- package/src/Presentation/ui-components/Avatar/avatar.stories.tsx +0 -78
- package/src/Presentation/ui-components/Badge/Badge.scss +0 -23
- package/src/Presentation/ui-components/Badge/Badge.stories.ts +0 -64
- package/src/Presentation/ui-components/Badge/Badge.tsx +0 -23
- package/src/Presentation/ui-components/Button/Button.scss +0 -133
- package/src/Presentation/ui-components/Button/Button.stories.ts +0 -93
- package/src/Presentation/ui-components/Button/Button.tsx +0 -49
- package/src/Presentation/ui-components/CheckBox/CheckBox.scss +0 -10
- package/src/Presentation/ui-components/CheckBox/CheckBox.tsx +0 -23
- package/src/Presentation/ui-components/DialogBanner/DialogBanner.scss +0 -29
- package/src/Presentation/ui-components/DialogBanner/DialogBanner.stories.ts +0 -39
- package/src/Presentation/ui-components/DialogBanner/DialogBanner.tsx +0 -16
- package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.scss +0 -71
- package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.stories.tsx +0 -194
- package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.tsx +0 -73
- package/src/Presentation/ui-components/DialogWindow/DialogWindow.scss +0 -56
- package/src/Presentation/ui-components/DialogWindow/DialogWindow.stories.tsx +0 -107
- package/src/Presentation/ui-components/DialogWindow/DialogWindow.tsx +0 -44
- package/src/Presentation/ui-components/Dropdown/Dropdown.scss +0 -82
- package/src/Presentation/ui-components/Dropdown/Dropdown.stories.tsx +0 -150
- package/src/Presentation/ui-components/Dropdown/Dropdown.tsx +0 -92
- package/src/Presentation/ui-components/Dropdown/DropdownOption.tsx +0 -38
- package/src/Presentation/ui-components/Header/Header.scss +0 -72
- package/src/Presentation/ui-components/Header/Header.stories.tsx +0 -117
- package/src/Presentation/ui-components/Header/Header.tsx +0 -51
- package/src/Presentation/ui-components/Loader/Loader.scss +0 -27
- package/src/Presentation/ui-components/Loader/Loader.stories.ts +0 -42
- package/src/Presentation/ui-components/Loader/Loader.tsx +0 -15
- package/src/Presentation/ui-components/Message/Bubble/AttachmentBubble/AttachmentBubble.tsx +0 -71
- package/src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.scss +0 -84
- package/src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.tsx +0 -162
- package/src/Presentation/ui-components/Message/Bubble/FileBubble/FileBubble.scss +0 -29
- package/src/Presentation/ui-components/Message/Bubble/FileBubble/FileBubble.tsx +0 -16
- package/src/Presentation/ui-components/Message/Bubble/ImageBubble/ImageBubble.scss +0 -16
- package/src/Presentation/ui-components/Message/Bubble/ImageBubble/ImageBubble.tsx +0 -25
- package/src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.scss +0 -40
- package/src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.tsx +0 -22
- package/src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.scss +0 -27
- package/src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.tsx +0 -34
- package/src/Presentation/ui-components/Message/FileUrl/FileUrl.scss +0 -58
- package/src/Presentation/ui-components/Message/FileUrl/FileUrl.tsx +0 -43
- package/src/Presentation/ui-components/Message/Message.scss +0 -136
- package/src/Presentation/ui-components/Message/Message.stories.tsx +0 -328
- package/src/Presentation/ui-components/Message/Message.tsx +0 -85
- package/src/Presentation/ui-components/Message/MessageCaption/MessageCaption.scss +0 -90
- package/src/Presentation/ui-components/Message/MessageCaption/MessageCaption.tsx +0 -46
- package/src/Presentation/ui-components/Message/TimeAndStatus/TimeAndStatus.scss +0 -51
- package/src/Presentation/ui-components/Message/TimeAndStatus/TimeAndStatus.tsx +0 -32
- package/src/Presentation/ui-components/MessageInput/AttachmentUploader/AttachmentUploader.tsx +0 -38
- package/src/Presentation/ui-components/MessageInput/MessageInput.scss +0 -137
- package/src/Presentation/ui-components/MessageInput/MessageInput.stories.tsx +0 -145
- package/src/Presentation/ui-components/MessageInput/MessageInput.tsx +0 -161
- package/src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.scss +0 -16
- package/src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.tsx +0 -27
- package/src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyMessagePreview.scss +0 -140
- package/src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyMessagePreview.tsx +0 -101
- package/src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.scss +0 -35
- package/src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.tsx +0 -79
- package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.scss +0 -30
- package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.stories.ts +0 -160
- package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.tsx +0 -34
- package/src/Presentation/ui-components/Placeholder/Placeholder.scss +0 -51
- package/src/Presentation/ui-components/Placeholder/Placeholder.stories.tsx +0 -91
- package/src/Presentation/ui-components/Placeholder/Placeholder.tsx +0 -38
- package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss +0 -30
- package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.stories.ts +0 -77
- package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx +0 -38
- package/src/Presentation/ui-components/SettingsItem/SettingsItem.scss +0 -69
- package/src/Presentation/ui-components/SettingsItem/SettingsItem.stories.tsx +0 -184
- package/src/Presentation/ui-components/SettingsItem/SettingsItem.tsx +0 -56
- package/src/Presentation/ui-components/TextField/TextField.scss +0 -91
- package/src/Presentation/ui-components/TextField/TextField.stories.ts +0 -108
- package/src/Presentation/ui-components/TextField/TextField.tsx +0 -88
- package/src/Presentation/ui-components/Toast/Toast.scss +0 -22
- package/src/Presentation/ui-components/Toast/Toast.stories.tsx +0 -50
- package/src/Presentation/ui-components/Toast/ToastProvider.tsx +0 -29
- package/src/Presentation/ui-components/UserListItem/UserListItem.scss +0 -33
- package/src/Presentation/ui-components/UserListItem/UserListItem.stories.tsx +0 -130
- package/src/Presentation/ui-components/UserListItem/UserListItem.tsx +0 -43
- package/src/Presentation/ui-components/index.ts +0 -19
- package/src/QBconfig.ts +0 -151
- package/src/hooks/useModal.ts +0 -13
- package/src/index-ui.ts +0 -87
- package/src/index.scss +0 -28
- package/src/index.tsx +0 -25
- package/src/logo.svg +0 -1
- package/src/package_artan_react_ui.json +0 -91
- package/src/package_original.json +0 -115
- package/src/qb-api-calls/index.ts +0 -670
- package/src/react-app-env.d.ts +0 -1
- package/src/setupTests.ts +0 -5
- package/src/utils/DateTimeFormatter.ts +0 -90
- package/src/utils/formatFileSize.ts +0 -8
- package/src/utils/parse.ts +0 -76
- package/src/utils/utils.ts +0 -102
- package/storybook-static/426.be971fb5.iframe.bundle.js +0 -157
- package/storybook-static/426.be971fb5.iframe.bundle.js.map +0 -1
- package/storybook-static/433.dffc897e.iframe.bundle.js +0 -1
- package/storybook-static/603.4cf0423b.iframe.bundle.js +0 -1
- package/storybook-static/607.b04b9f0b.iframe.bundle.js +0 -1
- package/storybook-static/703.f12f2e71.iframe.bundle.js +0 -33
- package/storybook-static/703.f12f2e71.iframe.bundle.js.map +0 -1
- package/storybook-static/729.734b4ae4.iframe.bundle.js +0 -1
- package/storybook-static/768.e44c05aa.iframe.bundle.js +0 -351
- package/storybook-static/768.e44c05aa.iframe.bundle.js.map +0 -1
- package/storybook-static/797.b3873e04.iframe.bundle.js +0 -1
- package/storybook-static/926.f5308089.iframe.bundle.js +0 -508
- package/storybook-static/926.f5308089.iframe.bundle.js.map +0 -1
- package/storybook-static/938.56e9d83c.iframe.bundle.js +0 -1
- package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.1b74ae55.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.1b74ae55.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-Badge-Badge-stories.9449e470.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-Badge-Badge-stories.9449e470.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-Button-Button-stories.84103f20.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-Button-Button-stories.84103f20.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.fa91d2c7.iframe.bundle.js +0 -10
- package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.fa91d2c7.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.bf9005d3.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.bf9005d3.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.f81a8e38.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.f81a8e38.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.141a3ae7.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.141a3ae7.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-Header-Header-stories.9f45c30e.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-Header-Header-stories.9f45c30e.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-Loader-Loader-stories.af01e15d.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-Loader-Loader-stories.af01e15d.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-Message-Message-stories.264d251d.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-Message-Message-stories.264d251d.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.0d1800d9.iframe.bundle.js +0 -1
- package/storybook-static/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.a7d43c0b.iframe.bundle.js +0 -10
- package/storybook-static/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.a7d43c0b.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.97287936.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.97287936.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.a9f5cd67.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.a9f5cd67.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.429a72d5.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.429a72d5.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-TextField-TextField-stories.fd8caf6c.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-TextField-TextField-stories.fd8caf6c.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-Toast-Toast-stories.1b8758fc.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-Toast-Toast-stories.1b8758fc.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.8781472b.iframe.bundle.js +0 -14
- package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.8781472b.iframe.bundle.js.map +0 -1
- package/storybook-static/docs-Introduction-mdx.9dc275f1.iframe.bundle.js +0 -10
- package/storybook-static/docs-Introduction-mdx.9dc275f1.iframe.bundle.js.map +0 -1
- package/storybook-static/docs-Styling-mdx.72149f36.iframe.bundle.js +0 -10
- package/storybook-static/docs-Styling-mdx.72149f36.iframe.bundle.js.map +0 -1
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/favicon.svg +0 -7
- package/storybook-static/iframe.html +0 -355
- package/storybook-static/index.html +0 -127
- package/storybook-static/index.json +0 -1
- package/storybook-static/logo192.png +0 -0
- package/storybook-static/logo512.png +0 -0
- package/storybook-static/main.2f6d7582.iframe.bundle.js +0 -1
- package/storybook-static/manifest.json +0 -25
- package/storybook-static/project.json +0 -1
- package/storybook-static/quickblox.js +0 -54609
- package/storybook-static/robots.txt +0 -3
- package/storybook-static/runtime~main.72d6302b.iframe.bundle.js +0 -1
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -63
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -18
- package/storybook-static/sb-addons/essentials-measure-5/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-measure-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-6/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-outline-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-4/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-toolbars-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/interactions-7/manager-bundle.js +0 -12
- package/storybook-static/sb-addons/interactions-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/links-0/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/viewport-8/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/viewport-8/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-common-assets/fonts.css +0 -31
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js +0 -1
- package/storybook-static/sb-manager/chunk-2IXBUOFS.js +0 -7
- package/storybook-static/sb-manager/chunk-INSKDKQB.js +0 -348
- package/storybook-static/sb-manager/chunk-NGTUFCUO.js +0 -9
- package/storybook-static/sb-manager/chunk-NMB3SATH.js +0 -406
- package/storybook-static/sb-manager/chunk-ZEU7PDD3.js +0 -1
- package/storybook-static/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +0 -156
- package/storybook-static/sb-manager/globals-module-info.js +0 -1
- package/storybook-static/sb-manager/globals.js +0 -1
- package/storybook-static/sb-manager/index.js +0 -1
- package/storybook-static/sb-manager/runtime.js +0 -1
- package/storybook-static/sb-manager/syntaxhighlighter-V7JZZA35-DXZCI2WR.js +0 -1
- package/storybook-static/sb-preview/globals.js +0 -1
- package/storybook-static/sb-preview/runtime.js +0 -112
- package/storybook-static/static/css/Presentation-ui-components-Avatar-avatar-stories.7b228eb0.chunk.css +0 -3
- package/storybook-static/static/css/Presentation-ui-components-Avatar-avatar-stories.7b228eb0.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-Badge-Badge-stories.7b8317f8.chunk.css +0 -3
- package/storybook-static/static/css/Presentation-ui-components-Badge-Badge-stories.7b8317f8.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-Button-Button-stories.1b6e1c55.chunk.css +0 -4
- package/storybook-static/static/css/Presentation-ui-components-Button-Button-stories.1b6e1c55.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-DialogBanner-DialogBanner-stories.bd07fad3.chunk.css +0 -3
- package/storybook-static/static/css/Presentation-ui-components-DialogBanner-DialogBanner-stories.bd07fad3.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.6d563072.chunk.css +0 -7
- package/storybook-static/static/css/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.6d563072.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-DialogWindow-DialogWindow-stories.4f813450.chunk.css +0 -6
- package/storybook-static/static/css/Presentation-ui-components-DialogWindow-DialogWindow-stories.4f813450.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-Dropdown-Dropdown-stories.e37f549d.chunk.css +0 -5
- package/storybook-static/static/css/Presentation-ui-components-Dropdown-Dropdown-stories.e37f549d.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-Header-Header-stories.fb1001e7.chunk.css +0 -4
- package/storybook-static/static/css/Presentation-ui-components-Header-Header-stories.fb1001e7.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-Loader-Loader-stories.dab34da1.chunk.css +0 -3
- package/storybook-static/static/css/Presentation-ui-components-Loader-Loader-stories.dab34da1.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-Message-Message-stories.4c915c89.chunk.css +0 -14
- package/storybook-static/static/css/Presentation-ui-components-Message-Message-stories.4c915c89.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-MessageInput-MessageInput-stories.7eb916fc.chunk.css +0 -7
- package/storybook-static/static/css/Presentation-ui-components-MessageInput-MessageInput-stories.7eb916fc.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.34aa36b2.chunk.css +0 -3
- package/storybook-static/static/css/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.34aa36b2.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-Placeholder-Placeholder-stories.cb7fb80a.chunk.css +0 -3
- package/storybook-static/static/css/Presentation-ui-components-Placeholder-Placeholder-stories.cb7fb80a.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.31cd021e.chunk.css +0 -3
- package/storybook-static/static/css/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.31cd021e.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-SettingsItem-SettingsItem-stories.b67b748b.chunk.css +0 -5
- package/storybook-static/static/css/Presentation-ui-components-SettingsItem-SettingsItem-stories.b67b748b.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-TextField-TextField-stories.412027f8.chunk.css +0 -4
- package/storybook-static/static/css/Presentation-ui-components-TextField-TextField-stories.412027f8.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-Toast-Toast-stories.a5b284f4.chunk.css +0 -754
- package/storybook-static/static/css/Presentation-ui-components-Toast-Toast-stories.a5b284f4.chunk.css.map +0 -1
- package/storybook-static/static/css/Presentation-ui-components-UserListItem-UserListItem-stories.655aa6c1.chunk.css +0 -7
- package/storybook-static/static/css/Presentation-ui-components-UserListItem-UserListItem-stories.655aa6c1.chunk.css.map +0 -1
- package/storybook-static/static/css/main.a921485c.css +0 -5
- package/storybook-static/static/css/main.a921485c.css.map +0 -1
- package/storybook-static/static/media/add-contact.e7e7b8b15edebe99cae9c46963126e7c.svg +0 -3
- package/storybook-static/static/media/add.5cbe1f2c489b81396863f7128e3d26e7.svg +0 -3
- package/storybook-static/static/media/admin.476c2854d7ad23f2afdedac2d9bd6815.svg +0 -3
- package/storybook-static/static/media/archive.d0a72898f3c47a4194d18f560a54e109.svg +0 -3
- package/storybook-static/static/media/arrow-left.5005351d4fa6a7c074dd9780fb49dcc8.svg +0 -3
- package/storybook-static/static/media/arrow-right.1be3b599e21158807fdf72f4976179a2.svg +0 -3
- package/storybook-static/static/media/attachment.a58b8549f46ae5bbe93be779cd9f2037.svg +0 -3
- package/storybook-static/static/media/audio-file.40179c472f715fc74d4da607da96aa5e.svg +0 -3
- package/storybook-static/static/media/back.b541e72fe05542e145575c8851558998.svg +0 -3
- package/storybook-static/static/media/banned.c7c74bfa1c833263f3ab42d0529132d1.svg +0 -3
- package/storybook-static/static/media/broadcast.55273926379e5f486ccfdfab1a310b2d.svg +0 -7
- package/storybook-static/static/media/broken-file.bc084278a0d284b7901b47f24001caa6.svg +0 -3
- package/storybook-static/static/media/camera-off.8e01960815ce7620a1039d0fc5f758b2.svg +0 -3
- package/storybook-static/static/media/camera-on.ddd56e36fa505d618ab772e23c8381e6.svg +0 -3
- package/storybook-static/static/media/camera.a5a215695fba60146e649094188f37e2.svg +0 -3
- package/storybook-static/static/media/chat-filled.aaf0b778d198e7b8f632a68299a8fd13.svg +0 -3
- package/storybook-static/static/media/chat.59cd437f21fe7043682dd04cbe6377be.svg +0 -3
- package/storybook-static/static/media/check-off.0c0256f00eeb75770ffc2fbd2b59eab0.svg +0 -3
- package/storybook-static/static/media/check-on.80442753ef6922df1913453f50099315.svg +0 -3
- package/storybook-static/static/media/close.c145af996de81b25f3930bf36d88b161.svg +0 -3
- package/storybook-static/static/media/conference.ffbdf37c0510c796138f18e6c1205204.svg +0 -3
- package/storybook-static/static/media/contact-filled.f04f56ba3f98ade5d7ced7814d8a5fa8.svg +0 -3
- package/storybook-static/static/media/contact.40a8b8104c3a448b81108ffede850963.svg +0 -3
- package/storybook-static/static/media/copy.100bd0fff933cbde8ad4bc2ac281c845.svg +0 -3
- package/storybook-static/static/media/delete.287c9b4b3b0e58cb081c6e388e68b409.svg +0 -3
- package/storybook-static/static/media/down.7a43a3d78885f40616ce111c86c108a4.svg +0 -3
- package/storybook-static/static/media/download.43c26d404dd023e42aaacc52151f7a59.svg +0 -3
- package/storybook-static/static/media/edit.8d813af82ecab84303ee3c97bd7bc562.svg +0 -3
- package/storybook-static/static/media/emoji.9a202cbb16735f3c83ba8772f0218aa4.svg +0 -3
- package/storybook-static/static/media/error.ec60e2052661b82f27b7ce270ae133a7.svg +0 -3
- package/storybook-static/static/media/favorite.194d78057be6cd7968c85e7b5822f82a.svg +0 -3
- package/storybook-static/static/media/file.e537292693b3c89c023fd383c70bd221.svg +0 -3
- package/storybook-static/static/media/forward-filled.43120a68057427c89c88b28d9b20dd90.svg +0 -3
- package/storybook-static/static/media/freeze.35619771e645b649c38e0427d9b39a25.svg +0 -3
- package/storybook-static/static/media/full-screen.6b01c93e069421c69bda2bbde5d01336.svg +0 -3
- package/storybook-static/static/media/gif-file.2c46a5df6c8397f5b9088e66aee3fd44.svg +0 -3
- package/storybook-static/static/media/group-chat.19d5305cab6017d494ac35ecb285a9fe.svg +0 -3
- package/storybook-static/static/media/help.786f48518c96c8e7098296d68245c339.svg +0 -3
- package/storybook-static/static/media/hide.2785264246d70868717984a5ad44d4c9.svg +0 -3
- package/storybook-static/static/media/hungup.e5d2289a9e8cd755bd1ee36b738305a2.svg +0 -3
- package/storybook-static/static/media/image-filled.8afb62b142d786e90102f1cac73a9c13.svg +0 -3
- package/storybook-static/static/media/image.64092dadd5215c8d3ba99ccac753d743.svg +0 -3
- package/storybook-static/static/media/income-call.60ca2d367a00d582f4b6f4a5f2047e27.svg +0 -3
- package/storybook-static/static/media/information.8217e163c334852f143e7199c97fab1d.svg +0 -3
- package/storybook-static/static/media/leave.ae5422a12edec1b61484ff2932819c77.svg +0 -3
- package/storybook-static/static/media/like.45662989373aa524cd580fb42432e0bc.svg +0 -3
- package/storybook-static/static/media/link.74f567c3ee4366d79fb81d73eb8c0919.svg +0 -3
- package/storybook-static/static/media/loader.2eb72391c5267453edb4106528c075ad.svg +0 -3
- package/storybook-static/static/media/location.cab52453404524c345ec7efdd86fa66b.svg +0 -4
- package/storybook-static/static/media/louder.133519141541a9cd2f0e898534b39732.svg +0 -3
- package/storybook-static/static/media/mention.6c4885bb0ea5ca85c8962f6f51ac1cb4.svg +0 -3
- package/storybook-static/static/media/mic-off.43e60427600bcf7fd78fb840ff50d804.svg +0 -3
- package/storybook-static/static/media/mic-on.5a52100de3770550b3a57a76827843c2.svg +0 -4
- package/storybook-static/static/media/minimize.a849dd3a36ece08b992a773d135a0c3f.svg +0 -3
- package/storybook-static/static/media/moderations.07c8d1fe96b0b8bb5911f6cc37f764c6.svg +0 -3
- package/storybook-static/static/media/more.4ed9ad54ae110d9760b6e9698d821960.svg +0 -3
- package/storybook-static/static/media/muted.cb37ac3c577c87c800466aa7aee65af2.svg +0 -3
- package/storybook-static/static/media/new-chat.124e0351bd0e19ff4c5fdbabbe5c6027.svg +0 -3
- package/storybook-static/static/media/next.97a0eeea1f8daa2d31c8452f29908bf1.svg +0 -3
- package/storybook-static/static/media/notifications.ab8e847ae04e2bec9209dbdd1054b0f2.svg +0 -3
- package/storybook-static/static/media/notify-off.4a669a3a8cbd38b3309dbc4c909f6089.svg +0 -3
- package/storybook-static/static/media/notify-on.ea9ffc856ad6cdbe87184af558c78eec.svg +0 -3
- package/storybook-static/static/media/outcome-call.9f5fec07823796ad78963a06cdcf629e.svg +0 -3
- package/storybook-static/static/media/pause.27eb8c32999f10d05d6a200165d798a9.svg +0 -3
- package/storybook-static/static/media/phone-filled.e969511d74935af26ef366f575929f68.svg +0 -3
- package/storybook-static/static/media/phone.6355580a064a488b6317372d71f84c00.svg +0 -3
- package/storybook-static/static/media/play.00bfe0e9c94dc6dfb230262e45b2f860.svg +0 -3
- package/storybook-static/static/media/plus.d3953cb1cf830bcfc41c8cc6133b13b1.svg +0 -3
- package/storybook-static/static/media/private-chat.c68f36baf025b9d20ad1f801a2396e7a.svg +0 -3
- package/storybook-static/static/media/public-channel.7a6ada7f30c44fb4a99021df0eb0e996.svg +0 -7
- package/storybook-static/static/media/quite.9f45e2152fe6c499a776cb387ee4859f.svg +0 -3
- package/storybook-static/static/media/record.e49ee7da793b2ce446a4e7128970c0cc.svg +0 -3
- package/storybook-static/static/media/refresh.6e955728d9ec086f34e9adaaaafacf3e.svg +0 -3
- package/storybook-static/static/media/remove-2.8a7700757f02c941f03c37c7e495bf63.svg +0 -3
- package/storybook-static/static/media/remove.831e69b70db1b3eb72a49444b8aa1e16.svg +0 -3
- package/storybook-static/static/media/rephrase.551171aa8903b31746a58a95528b1f68.svg +0 -6
- package/storybook-static/static/media/reply-filled.17ed65506e902f17bb22e87ffac93314.svg +0 -3
- package/storybook-static/static/media/screenshare.c2f94264a7640ea1bbb2a22f7d570038.svg +0 -3
- package/storybook-static/static/media/search.25663e60d71e01c64fdfc83df7460ab0.svg +0 -3
- package/storybook-static/static/media/send.d298db52aafdb846a46c9d180ad45946.svg +0 -3
- package/storybook-static/static/media/sent.f427753e5502fd7783a08e5f0e0d2f35.svg +0 -3
- package/storybook-static/static/media/settings-filled.bd9b60ff4e9eae911e4e2bc69e8e79ca.svg +0 -3
- package/storybook-static/static/media/share.7ce8283aa267fb065c568d65b482e211.svg +0 -3
- package/storybook-static/static/media/show.de1782527c4a7fa14101dffbfba8aea6.svg +0 -3
- package/storybook-static/static/media/speaker-off.fe84597c4b68f4f761e12f789dc58718.svg +0 -3
- package/storybook-static/static/media/speaker.e7ff48a73ca43188703b36dfecd932b5.svg +0 -3
- package/storybook-static/static/media/stop-record.a2e9d50a0930c24af43d7f357093be81.svg +0 -3
- package/storybook-static/static/media/stop-share.d1be236e01dd924ba711e1e17f41054c.svg +0 -3
- package/storybook-static/static/media/stream-filled.c40bae61fea25455602a61db5e77fa71.svg +0 -3
- package/storybook-static/static/media/stream.700f4f8ce0cee0ae1ef56132867427fe.svg +0 -3
- package/storybook-static/static/media/swap-camera.bc3a4652106f5c57d14b4dcbffff08a5.svg +0 -3
- package/storybook-static/static/media/text-document.cad7e87368501b96de2a939d08852dcd.svg +0 -3
- package/storybook-static/static/media/unarchive.1b1a7438cd8eb6fee80e6ac89baa195b.svg +0 -3
- package/storybook-static/static/media/user.911c7ae778615185b285ce0ae4068486.svg +0 -3
- package/storybook-static/static/media/video-file.dbd1f8c63a3769f9e9a027f0922d56b2.svg +0 -3
- package/storybook-static/static/media/video.bbcc2109285c18eea02ede86920de0dd.svg +0 -3
- package/storybook-static/static/media/viewed-delivered.f43360dc87235a6cf574ff53f73dd777.svg +0 -3
- package/storybook-static/static/media/voice.b937c8a1f744050bec2cd389ad2a1f3a.svg +0 -3
- package/storybook-static/stories.json +0 -1
|
@@ -1,1354 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useRef, useState } from 'react';
|
|
2
|
-
import '../../Views/Dialog/Dialog.scss';
|
|
3
|
-
import '../../Views/Dialog/DialogHeader/DialogInfoIcon/DialogInfoIcon.scss';
|
|
4
|
-
import { Tone } from 'qb-ai-rephrase/src/Tone';
|
|
5
|
-
import { toast } from 'react-toastify';
|
|
6
|
-
import useQbInitializedDataContext from '../../providers/QuickBloxUIKitProvider/useQbInitializedDataContext';
|
|
7
|
-
import { DialogEntity } from '../../../Domain/entity/DialogEntity';
|
|
8
|
-
import { DialogListViewModel } from '../../Views/DialogList/DialogListViewModel';
|
|
9
|
-
import DialogList from '../../Views/DialogList/DialogList';
|
|
10
|
-
import DialogInfo from '../../Views/DialogInfo/DialogInfo';
|
|
11
|
-
import DesktopLayout from './DesktopLayout';
|
|
12
|
-
import Dialog from '../../Views/Dialog/Dialog';
|
|
13
|
-
import useDialogListViewModel from '../../Views/DialogList/useDialogListViewModel';
|
|
14
|
-
import { Pagination } from '../../../Domain/repository/Pagination';
|
|
15
|
-
import UiKitTheme from '../../themes/UiKitTheme';
|
|
16
|
-
import BaseViewModel, {
|
|
17
|
-
ForwardMessagesParams,
|
|
18
|
-
ReplyMessagesParams,
|
|
19
|
-
} from '../../../CommonTypes/BaseViewModel';
|
|
20
|
-
import { AIMessageWidget } from '../../Views/Dialog/AIWidgets/AIMessageWidget';
|
|
21
|
-
import UseDefaultAIAssistAnswerWidget from '../../Views/Dialog/AIWidgets/UseDefaultAIAssistAnswerWidget';
|
|
22
|
-
import UseDefaultAITranslateWidget from '../../Views/Dialog/AIWidgets/UseDefaultAITranslateWidget';
|
|
23
|
-
import UseDefaultAIRephraseMessageWidget from '../../Views/Dialog/AIWidgets/UseDefaultAIRephraseMessageWidget';
|
|
24
|
-
import { DefaultConfigurations } from '../../../Data/DefaultConfigurations';
|
|
25
|
-
import UseDefaultAIAssistAnswerWidgetWithProxy from '../../Views/Dialog/AIWidgets/UseDefaultAIAssistAnswerWidgetWithProxy';
|
|
26
|
-
import UseDefaultAITranslateWidgetWithProxy from '../../Views/Dialog/AIWidgets/UseDefaultAITranslateWidgetWithProxy';
|
|
27
|
-
import UseDefaultAIRephraseMessageWidgetWithProxy from '../../Views/Dialog/AIWidgets/UseDefaultAIRephraseMessageWidgetWithProxy';
|
|
28
|
-
import { DialogType } from '../../../Domain/entity/DialogTypes';
|
|
29
|
-
import { GroupDialogEntity } from '../../../Domain/entity/GroupDialogEntity';
|
|
30
|
-
import { PrivateDialogEntity } from '../../../Domain/entity/PrivateDialogEntity';
|
|
31
|
-
import { PublicDialogEntity } from '../../../Domain/entity/PublicDialogEntity';
|
|
32
|
-
import { DialogViewModel } from '../../Views/Dialog/DialogViewModel';
|
|
33
|
-
import useDialogViewModel from '../../Views/Dialog/useDialogViewModel';
|
|
34
|
-
import { MessageEntity } from '../../../Domain/entity/MessageEntity';
|
|
35
|
-
import { stringifyError } from '../../../utils/parse';
|
|
36
|
-
import ReplyMessagePreview from '../../ui-components/MessageInput/ReplyMessagePreview/ReplyMessagePreview';
|
|
37
|
-
import ForwardMessageFlow from '../../Views/Dialog/ForwardMessageFlow/ForwardMessageFlow';
|
|
38
|
-
import SectionList from '../../components/containers/SectionList';
|
|
39
|
-
import { SectionItem } from '../../components/containers/SectionList/useComponent';
|
|
40
|
-
import { useMobileLayout } from '../../components/containers/SectionList/hooks';
|
|
41
|
-
import { MessageDTOMapper } from '../../../Data/source/remote/Mapper/MessageDTOMapper';
|
|
42
|
-
import MembersList from '../../Views/DialogInfo/MembersList/MembersList';
|
|
43
|
-
import useUsersListViewModel from '../../Views/DialogInfo/UsersList/useUsersListViewModel';
|
|
44
|
-
import Header from '../../ui-components/Header/Header';
|
|
45
|
-
import Avatar from '../../ui-components/Avatar/Avatar';
|
|
46
|
-
import {
|
|
47
|
-
GroupChatSvg,
|
|
48
|
-
InformationSvg,
|
|
49
|
-
PublicChannelSvg,
|
|
50
|
-
UserSvg,
|
|
51
|
-
} from '../../icons';
|
|
52
|
-
import Button from '../../ui-components/Button/Button';
|
|
53
|
-
import DialogWindow from '../../ui-components/DialogWindow/DialogWindow';
|
|
54
|
-
import MessageInput from '../../ui-components/MessageInput/MessageInput';
|
|
55
|
-
import AIRephraseWidget from '../../Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget';
|
|
56
|
-
import MessageItem from '../../Views/Dialog/MessageItem/MessageItem';
|
|
57
|
-
import { MessageSeparator, Placeholder } from '../../ui-components';
|
|
58
|
-
import ToastProvider from '../../ui-components/Toast/ToastProvider';
|
|
59
|
-
import CreateNewDialogFlow from '../../Views/Flow/CreateDialogFlow/CreateNewDialogFlow';
|
|
60
|
-
import useModal from '../../../hooks/useModal';
|
|
61
|
-
import useQBConnection from '../../providers/QuickBloxUIKitProvider/useQBConnection';
|
|
62
|
-
import { ProxyConfig } from '../../../CommonTypes/CommonTypes';
|
|
63
|
-
import EventMessageType from '../../../Domain/entity/EventMessageType';
|
|
64
|
-
import { formatFileSize } from '../../../utils/formatFileSize';
|
|
65
|
-
import UseDefaultAIAssistAnswerWidgetWithSDK from '../../Views/Dialog/AIWidgets/UseDefaultAIAssistAnswerWidgetWithSDK';
|
|
66
|
-
import UseDefaultAITranslateWidgetWithSDK from '../../Views/Dialog/AIWidgets/UseDefaultAITranslateWidgetWithSDK';
|
|
67
|
-
|
|
68
|
-
type AIWidgetPlaceHolder = {
|
|
69
|
-
enabled: boolean;
|
|
70
|
-
default: boolean;
|
|
71
|
-
AIWidget?: AIMessageWidget;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
type QuickBloxUIKitDesktopLayoutProps = {
|
|
75
|
-
theme?: UiKitTheme;
|
|
76
|
-
AIRephrase?: AIWidgetPlaceHolder;
|
|
77
|
-
AITranslate?: AIWidgetPlaceHolder;
|
|
78
|
-
AIAssist?: AIWidgetPlaceHolder;
|
|
79
|
-
uikitHeightOffset?: string;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
const QuickBloxUIKitDesktopLayout: React.FC<
|
|
83
|
-
QuickBloxUIKitDesktopLayoutProps
|
|
84
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars,react/function-component-definition
|
|
85
|
-
> = ({
|
|
86
|
-
theme = undefined,
|
|
87
|
-
AITranslate = undefined,
|
|
88
|
-
AIRephrase = undefined,
|
|
89
|
-
AIAssist = undefined,
|
|
90
|
-
uikitHeightOffset = '0px',
|
|
91
|
-
}: QuickBloxUIKitDesktopLayoutProps) => {
|
|
92
|
-
const mimeType = 'audio/webm;codecs=opus'; // audio/ogg audio/mpeg audio/webm audio/x-wav audio/mp4
|
|
93
|
-
const messagePerPage = 47;
|
|
94
|
-
|
|
95
|
-
const currentContext = useQbInitializedDataContext();
|
|
96
|
-
const QBConfig =
|
|
97
|
-
currentContext.InitParams.qbConfig ||
|
|
98
|
-
DefaultConfigurations.getDefaultQBConfig();
|
|
99
|
-
const userName =
|
|
100
|
-
currentContext.storage.REMOTE_DATA_SOURCE.authInformation?.userName;
|
|
101
|
-
const currentUserId =
|
|
102
|
-
currentContext.storage.REMOTE_DATA_SOURCE.authInformation?.userId;
|
|
103
|
-
const sessionToken =
|
|
104
|
-
currentContext.storage.REMOTE_DATA_SOURCE.authInformation?.sessionToken;
|
|
105
|
-
const { enableForwarding } = QBConfig.appConfig;
|
|
106
|
-
const { enableReplying } = QBConfig.appConfig;
|
|
107
|
-
const { maxFileSize } = currentContext.InitParams;
|
|
108
|
-
|
|
109
|
-
const maxTokensForAIRephrase =
|
|
110
|
-
currentContext.InitParams.qbConfig.configAIApi.AIRephraseWidgetConfig
|
|
111
|
-
.maxTokens;
|
|
112
|
-
|
|
113
|
-
const rephraseTones: Tone[] =
|
|
114
|
-
currentContext.InitParams.qbConfig.configAIApi.AIRephraseWidgetConfig.Tones;
|
|
115
|
-
|
|
116
|
-
let defaultAIRephraseWidget = AIRephrase?.AIWidget;
|
|
117
|
-
let defaultAITranslateWidget = AITranslate?.AIWidget;
|
|
118
|
-
let defaultAIAssistWidget = AIAssist?.AIWidget;
|
|
119
|
-
|
|
120
|
-
const getAIAssistAnswer = (): void => {
|
|
121
|
-
if (QBConfig.configAIApi.AIAnswerAssistWidgetConfig.smartChatAssistantId) {
|
|
122
|
-
defaultAIAssistWidget = UseDefaultAIAssistAnswerWidgetWithSDK(
|
|
123
|
-
currentContext.storage.REMOTE_DATA_SOURCE,
|
|
124
|
-
QBConfig.configAIApi.AIAnswerAssistWidgetConfig.smartChatAssistantId,
|
|
125
|
-
);
|
|
126
|
-
} else if (AIAssist?.enabled && !AIAssist?.default) {
|
|
127
|
-
defaultAIAssistWidget = AIAssist.AIWidget;
|
|
128
|
-
} else if (
|
|
129
|
-
AIAssist?.enabled ||
|
|
130
|
-
QBConfig.configAIApi.AIAnswerAssistWidgetConfig.useDefault
|
|
131
|
-
) {
|
|
132
|
-
if (
|
|
133
|
-
!QBConfig.configAIApi.AIAnswerAssistWidgetConfig.useDefault ||
|
|
134
|
-
(AIAssist && !AIAssist?.default)
|
|
135
|
-
) {
|
|
136
|
-
defaultAIAssistWidget = undefined;
|
|
137
|
-
} else {
|
|
138
|
-
const { apiKey } = QBConfig.configAIApi.AIAnswerAssistWidgetConfig;
|
|
139
|
-
let token = '';
|
|
140
|
-
const proxyConfig: ProxyConfig =
|
|
141
|
-
QBConfig.configAIApi.AIAnswerAssistWidgetConfig.proxyConfig ||
|
|
142
|
-
DefaultConfigurations.getDefaultProxyConfig();
|
|
143
|
-
|
|
144
|
-
if (apiKey) {
|
|
145
|
-
token = apiKey;
|
|
146
|
-
defaultAIAssistWidget = UseDefaultAIAssistAnswerWidget({
|
|
147
|
-
...proxyConfig,
|
|
148
|
-
apiKeyOrSessionToken: token,
|
|
149
|
-
});
|
|
150
|
-
} else {
|
|
151
|
-
token = sessionToken || '';
|
|
152
|
-
defaultAIAssistWidget = UseDefaultAIAssistAnswerWidgetWithProxy({
|
|
153
|
-
...proxyConfig,
|
|
154
|
-
apiKeyOrSessionToken: token,
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
const getAITranslate = (): void => {
|
|
161
|
-
if (QBConfig.configAIApi.AITranslateWidgetConfig.smartChatAssistantId) {
|
|
162
|
-
defaultAITranslateWidget = UseDefaultAITranslateWidgetWithSDK(
|
|
163
|
-
currentContext.storage.REMOTE_DATA_SOURCE,
|
|
164
|
-
QBConfig.configAIApi.AITranslateWidgetConfig.smartChatAssistantId,
|
|
165
|
-
);
|
|
166
|
-
} else if (AITranslate?.enabled && !AITranslate?.default) {
|
|
167
|
-
defaultAITranslateWidget = AITranslate.AIWidget;
|
|
168
|
-
} else if (
|
|
169
|
-
AITranslate?.enabled ||
|
|
170
|
-
QBConfig.configAIApi.AITranslateWidgetConfig.useDefault
|
|
171
|
-
) {
|
|
172
|
-
if (
|
|
173
|
-
!QBConfig.configAIApi.AITranslateWidgetConfig.useDefault ||
|
|
174
|
-
(AITranslate && !AITranslate?.default)
|
|
175
|
-
) {
|
|
176
|
-
defaultAITranslateWidget = undefined;
|
|
177
|
-
} else {
|
|
178
|
-
const { apiKey } = QBConfig.configAIApi.AITranslateWidgetConfig;
|
|
179
|
-
let token = '';
|
|
180
|
-
const proxyConfig: ProxyConfig =
|
|
181
|
-
QBConfig.configAIApi.AITranslateWidgetConfig.proxyConfig ||
|
|
182
|
-
DefaultConfigurations.getDefaultProxyConfig();
|
|
183
|
-
|
|
184
|
-
if (apiKey) {
|
|
185
|
-
token = apiKey;
|
|
186
|
-
defaultAITranslateWidget = UseDefaultAITranslateWidget({
|
|
187
|
-
...proxyConfig,
|
|
188
|
-
apiKeyOrSessionToken: token,
|
|
189
|
-
});
|
|
190
|
-
} else {
|
|
191
|
-
token = sessionToken || '';
|
|
192
|
-
defaultAITranslateWidget = UseDefaultAITranslateWidgetWithProxy({
|
|
193
|
-
...proxyConfig,
|
|
194
|
-
apiKeyOrSessionToken: token,
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
const getAIRephrase = (): void => {
|
|
201
|
-
if (AIRephrase?.enabled && !AIRephrase?.default) {
|
|
202
|
-
defaultAIRephraseWidget = AIRephrase.AIWidget;
|
|
203
|
-
} else if (
|
|
204
|
-
AIRephrase?.enabled ||
|
|
205
|
-
QBConfig.configAIApi.AIRephraseWidgetConfig.useDefault
|
|
206
|
-
) {
|
|
207
|
-
if (
|
|
208
|
-
!QBConfig.configAIApi.AIRephraseWidgetConfig.useDefault ||
|
|
209
|
-
(AIRephrase && !AIRephrase?.default)
|
|
210
|
-
) {
|
|
211
|
-
defaultAIRephraseWidget = undefined;
|
|
212
|
-
} else {
|
|
213
|
-
const { apiKey } = QBConfig.configAIApi.AIRephraseWidgetConfig;
|
|
214
|
-
let token = '';
|
|
215
|
-
const proxyConfig: ProxyConfig =
|
|
216
|
-
QBConfig.configAIApi.AIRephraseWidgetConfig.proxyConfig ||
|
|
217
|
-
DefaultConfigurations.getDefaultProxyConfig();
|
|
218
|
-
|
|
219
|
-
if (apiKey) {
|
|
220
|
-
token = apiKey;
|
|
221
|
-
defaultAIRephraseWidget = UseDefaultAIRephraseMessageWidget({
|
|
222
|
-
...proxyConfig,
|
|
223
|
-
apiKeyOrSessionToken: token,
|
|
224
|
-
});
|
|
225
|
-
} else {
|
|
226
|
-
token = sessionToken || '';
|
|
227
|
-
defaultAIRephraseWidget = UseDefaultAIRephraseMessageWidgetWithProxy({
|
|
228
|
-
...proxyConfig,
|
|
229
|
-
apiKeyOrSessionToken: token,
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
getAITranslate();
|
|
237
|
-
getAIRephrase();
|
|
238
|
-
getAIAssistAnswer();
|
|
239
|
-
const dialogsViewModel: DialogListViewModel =
|
|
240
|
-
useDialogListViewModel(currentContext);
|
|
241
|
-
|
|
242
|
-
const messagesViewModel: DialogViewModel = useDialogViewModel(
|
|
243
|
-
dialogsViewModel.entity?.type,
|
|
244
|
-
dialogsViewModel.entity,
|
|
245
|
-
);
|
|
246
|
-
|
|
247
|
-
const [forwardMessage, setForwardMessage] = useState<null | MessageEntity>();
|
|
248
|
-
const forwardMessageModal = useModal();
|
|
249
|
-
const [selectedDialog, setSelectedDialog] = React.useState<DialogEntity>();
|
|
250
|
-
const userViewModel = useUsersListViewModel(selectedDialog);
|
|
251
|
-
const [dialogAvatarUrl, setDialogAvatarUrl] = React.useState('');
|
|
252
|
-
|
|
253
|
-
const { browserOnline, connectionStatus, connectionRepository } =
|
|
254
|
-
useQBConnection();
|
|
255
|
-
|
|
256
|
-
const [isOnline, setIsOnline] = useState<boolean>(
|
|
257
|
-
browserOnline && connectionStatus,
|
|
258
|
-
);
|
|
259
|
-
|
|
260
|
-
connectionRepository.subscribe(
|
|
261
|
-
(status) => {
|
|
262
|
-
console.log(
|
|
263
|
-
`Connection status: ${status ? 'CONNECTED' : 'DISCONNECTED'}`,
|
|
264
|
-
);
|
|
265
|
-
if (status) setIsOnline(true);
|
|
266
|
-
else setIsOnline(false);
|
|
267
|
-
},
|
|
268
|
-
EventMessageType.LocalMessage,
|
|
269
|
-
'DESKTOP_LAYOUT',
|
|
270
|
-
);
|
|
271
|
-
|
|
272
|
-
const [needRefresh, setNeedRefresh] = useState(false);
|
|
273
|
-
const toastConnectionErrorId = React.useRef(null);
|
|
274
|
-
|
|
275
|
-
//
|
|
276
|
-
const [waitAIWidget, setWaitAIWidget] = useState<boolean>(false);
|
|
277
|
-
const [messageText, setMessageText] = useState<string>('');
|
|
278
|
-
|
|
279
|
-
const [showReplyMessage, setShowReplyMessage] = useState(false);
|
|
280
|
-
const [messagesToReply, setMessagesToReply] = useState<MessageEntity[]>([]);
|
|
281
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
282
|
-
const [isMobile, width, height, breakpoint] = useMobileLayout();
|
|
283
|
-
const [clientHeight, setClientHeight] = useState<number>(0);
|
|
284
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
285
|
-
const [scrollUpToDown, setScrollUpToDown] = React.useState(false);
|
|
286
|
-
const [needDialogInformation, setNeedDialogInformation] = useState(false);
|
|
287
|
-
const informationCloseHandler = (): void => {
|
|
288
|
-
setNeedDialogInformation(false);
|
|
289
|
-
};
|
|
290
|
-
const informationOpenHandler = (): void => {
|
|
291
|
-
setNeedDialogInformation(true);
|
|
292
|
-
};
|
|
293
|
-
//
|
|
294
|
-
const maxWidthToResizing =
|
|
295
|
-
selectedDialog && needDialogInformation
|
|
296
|
-
? '$message-view-container-wrapper-min-width'
|
|
297
|
-
: '1040px';
|
|
298
|
-
const workHeight = isMobile
|
|
299
|
-
? `calc(${height.toString()}px - ${uikitHeightOffset} - 28px)`
|
|
300
|
-
: `calc(100vh - ${uikitHeightOffset} - 28px)`;
|
|
301
|
-
const messagesContainerMobileHeight = showReplyMessage
|
|
302
|
-
? `calc(${clientHeight}px - 128px - 64px - 16px)`
|
|
303
|
-
: `calc(${clientHeight}px - 128px - 16px)`;
|
|
304
|
-
const messagesContainerHeight = showReplyMessage
|
|
305
|
-
? `calc(${clientHeight}px - 128px - 64px)`
|
|
306
|
-
: `calc(${clientHeight}px - 128px - 1px)`;
|
|
307
|
-
const clientContainerHeight = `${clientHeight - 5}px`;
|
|
308
|
-
const headerHeight = 64;
|
|
309
|
-
const dialogListScrollableHeight = clientHeight - headerHeight - 6;
|
|
310
|
-
|
|
311
|
-
const [warningErrorText, setWarningErrorText] = useState<string>('');
|
|
312
|
-
const [useAudioWidget, setUseAudioWidget] = useState<boolean>(false);
|
|
313
|
-
const [fileToSend, setFileToSend] = useState<File | null>(null);
|
|
314
|
-
const [isRecording, setIsRecording] = useState(false);
|
|
315
|
-
const [permission, setPermission] = useState(false);
|
|
316
|
-
const [stream, setStream] = useState<MediaStream>();
|
|
317
|
-
const mediaRecorder = useRef<MediaRecorder>();
|
|
318
|
-
const [resultAudioBlob, setResultAudioBlob] = useState<Blob>();
|
|
319
|
-
const [audioChunks, setAudioChunks] = useState<Array<Blob>>([]);
|
|
320
|
-
const newModal = useModal();
|
|
321
|
-
const [dialogToLeave, setDialogToLeave] = useState<DialogEntity>();
|
|
322
|
-
const [showDialogList, setShowDialogList] = useState<boolean>(true);
|
|
323
|
-
const [showDialogMessages, setShowDialogMessages] = useState<boolean>(true);
|
|
324
|
-
const [showDialogInformation, setShowDialogInformation] =
|
|
325
|
-
useState<boolean>(false);
|
|
326
|
-
const [isAllMembersShow, setIsAllMembersShow] = React.useState(false);
|
|
327
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
328
|
-
|
|
329
|
-
// functions
|
|
330
|
-
|
|
331
|
-
const selectDialogActions = (item: BaseViewModel<DialogEntity>): void => {
|
|
332
|
-
if (isOnline) {
|
|
333
|
-
if (!dialogsViewModel.loading) {
|
|
334
|
-
setSelectedDialog(item.entity);
|
|
335
|
-
// dialogsViewModel.entity = item.entity;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
const isAuthProcessed = (): boolean => {
|
|
341
|
-
console.log('call isAuthProcessed');
|
|
342
|
-
const result =
|
|
343
|
-
currentContext.storage.REMOTE_DATA_SOURCE.needInit === false &&
|
|
344
|
-
currentContext.storage.REMOTE_DATA_SOURCE.authProcessed &&
|
|
345
|
-
currentContext.storage.CONNECTION_REPOSITORY.needInit === false;
|
|
346
|
-
|
|
347
|
-
console.log(
|
|
348
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
349
|
-
`initialValue.REMOTE_DATA_SOURCE_MOCK.needInit: ${currentContext.storage.REMOTE_DATA_SOURCE.needInit}`,
|
|
350
|
-
);
|
|
351
|
-
console.log(
|
|
352
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
353
|
-
`initialValue.REMOTE_DATA_SOURCE_MOCK.authProcessed: ${currentContext.storage.REMOTE_DATA_SOURCE.authProcessed}`,
|
|
354
|
-
);
|
|
355
|
-
|
|
356
|
-
console.log(
|
|
357
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
358
|
-
`initialValue.CONNECTION_REPOSITORY.needInit: ${currentContext.storage.CONNECTION_REPOSITORY.needInit}`,
|
|
359
|
-
);
|
|
360
|
-
|
|
361
|
-
return result;
|
|
362
|
-
};
|
|
363
|
-
|
|
364
|
-
const fetchMoreData = () => {
|
|
365
|
-
if (messagesViewModel.pagination.hasNextPage()) {
|
|
366
|
-
const newPagination = messagesViewModel.pagination;
|
|
367
|
-
|
|
368
|
-
newPagination.perPage = messagePerPage;
|
|
369
|
-
newPagination.nextPage();
|
|
370
|
-
|
|
371
|
-
messagesViewModel.getMessages(newPagination);
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
const getUserAvatarByUid = async () => {
|
|
376
|
-
let result = '';
|
|
377
|
-
const participants: Array<number> =
|
|
378
|
-
dialogsViewModel?.entity &&
|
|
379
|
-
dialogsViewModel?.entity.type === DialogType.private
|
|
380
|
-
? [
|
|
381
|
-
(dialogsViewModel?.entity as unknown as PrivateDialogEntity)
|
|
382
|
-
.participantId,
|
|
383
|
-
]
|
|
384
|
-
: [];
|
|
385
|
-
|
|
386
|
-
if (participants.length > 0) {
|
|
387
|
-
const senderUser = await userViewModel.getUserById(participants[0]);
|
|
388
|
-
|
|
389
|
-
result = senderUser?.photo || '';
|
|
390
|
-
} else {
|
|
391
|
-
result = '';
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
return result;
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
async function getDialogPhotoFileForPreview() {
|
|
398
|
-
const tmpFileUrl: string = await getUserAvatarByUid();
|
|
399
|
-
|
|
400
|
-
if (tmpFileUrl && tmpFileUrl.length > 0) {
|
|
401
|
-
setDialogAvatarUrl(tmpFileUrl);
|
|
402
|
-
} else {
|
|
403
|
-
setDialogAvatarUrl('');
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
// eslint-disable-next-line consistent-return
|
|
408
|
-
const renderIconForTypeDialog = (dialogEntity: DialogEntity) => {
|
|
409
|
-
if (dialogEntity.type === DialogType.group) {
|
|
410
|
-
const groupDialogEntity = dialogEntity as GroupDialogEntity;
|
|
411
|
-
|
|
412
|
-
return (
|
|
413
|
-
<Avatar
|
|
414
|
-
src={groupDialogEntity.photo || ''}
|
|
415
|
-
icon={<GroupChatSvg />}
|
|
416
|
-
size="md"
|
|
417
|
-
/>
|
|
418
|
-
);
|
|
419
|
-
}
|
|
420
|
-
if (dialogEntity.type === DialogType.private) {
|
|
421
|
-
return <Avatar src={dialogAvatarUrl} icon={<UserSvg />} size="md" />;
|
|
422
|
-
}
|
|
423
|
-
if (dialogEntity.type === DialogType.public) {
|
|
424
|
-
const publicDialogEntity = dialogEntity as PublicDialogEntity;
|
|
425
|
-
|
|
426
|
-
return (
|
|
427
|
-
<Avatar
|
|
428
|
-
src={publicDialogEntity.photo}
|
|
429
|
-
icon={<PublicChannelSvg />}
|
|
430
|
-
size="md"
|
|
431
|
-
/>
|
|
432
|
-
);
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
|
-
|
|
436
|
-
const showErrorMessage = (errorMessage: string) => {
|
|
437
|
-
setWarningErrorText(errorMessage);
|
|
438
|
-
setTimeout(() => {
|
|
439
|
-
setWarningErrorText('');
|
|
440
|
-
}, 3000);
|
|
441
|
-
};
|
|
442
|
-
|
|
443
|
-
const closeReplyMessageFlowHandler = () => {
|
|
444
|
-
setMessagesToReply([]);
|
|
445
|
-
setShowReplyMessage(false);
|
|
446
|
-
};
|
|
447
|
-
|
|
448
|
-
const repliedActions = (replyData: ReplyMessagesParams): void => {
|
|
449
|
-
// eslint-disable-next-line promise/catch-or-return
|
|
450
|
-
messagesViewModel
|
|
451
|
-
.sendReplyMessages(replyData)
|
|
452
|
-
.then((opResult: boolean) => {
|
|
453
|
-
// eslint-disable-next-line promise/always-return
|
|
454
|
-
if (opResult) {
|
|
455
|
-
toast('Message have been replied');
|
|
456
|
-
} else {
|
|
457
|
-
toast('Message have not been replied');
|
|
458
|
-
}
|
|
459
|
-
})
|
|
460
|
-
.catch((reason) => {
|
|
461
|
-
const errorMessage = stringifyError(reason);
|
|
462
|
-
|
|
463
|
-
toast(errorMessage);
|
|
464
|
-
})
|
|
465
|
-
.finally(() => {
|
|
466
|
-
setMessageText('');
|
|
467
|
-
closeReplyMessageFlowHandler();
|
|
468
|
-
});
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
const getMicrophonePermission = async () => {
|
|
472
|
-
if (window) {
|
|
473
|
-
try {
|
|
474
|
-
const mediaStream = await navigator.mediaDevices.getUserMedia({
|
|
475
|
-
audio: true,
|
|
476
|
-
video: false,
|
|
477
|
-
});
|
|
478
|
-
|
|
479
|
-
setPermission(true);
|
|
480
|
-
setStream(mediaStream);
|
|
481
|
-
} catch (err) {
|
|
482
|
-
showErrorMessage(
|
|
483
|
-
`The MediaRecorder API throws exception ${stringifyError(err)} .`,
|
|
484
|
-
);
|
|
485
|
-
}
|
|
486
|
-
} else {
|
|
487
|
-
showErrorMessage(
|
|
488
|
-
'The MediaRecorder API is not supported in your browser.',
|
|
489
|
-
);
|
|
490
|
-
}
|
|
491
|
-
};
|
|
492
|
-
|
|
493
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/require-await
|
|
494
|
-
const startRecording = async () => {
|
|
495
|
-
if (!stream) return;
|
|
496
|
-
const mimeTypes = [
|
|
497
|
-
'audio/aac',
|
|
498
|
-
'audio/mp4',
|
|
499
|
-
'audio/mpeg',
|
|
500
|
-
'audio/ogg',
|
|
501
|
-
'audio/wav',
|
|
502
|
-
'audio/webm',
|
|
503
|
-
'audio/3gpp',
|
|
504
|
-
'audio/flac',
|
|
505
|
-
'audio/x-aiff',
|
|
506
|
-
'audio/x-m4a',
|
|
507
|
-
];
|
|
508
|
-
|
|
509
|
-
console.log('MIME TYPES: ');
|
|
510
|
-
mimeTypes.forEach((mType) => {
|
|
511
|
-
if (MediaRecorder.isTypeSupported(mimeType)) {
|
|
512
|
-
console.log(`${mType} is supported`);
|
|
513
|
-
} else {
|
|
514
|
-
console.log(`${mType} is not supported`);
|
|
515
|
-
}
|
|
516
|
-
});
|
|
517
|
-
// audio/mp4;codecs=mp4a audio/webm;codecs=opus audio/webm;codecs=vp9,opus
|
|
518
|
-
const mimeContent = window.MediaRecorder.isTypeSupported('audio/mp4')
|
|
519
|
-
? 'audio/mp4;codecs=mp4a'
|
|
520
|
-
: 'audio/webm;codecs=opus';
|
|
521
|
-
|
|
522
|
-
const media = new MediaRecorder(stream, { mimeType: mimeContent });
|
|
523
|
-
|
|
524
|
-
mediaRecorder.current = media;
|
|
525
|
-
mediaRecorder.current.start();
|
|
526
|
-
|
|
527
|
-
const localAudioChunks: any[] = [];
|
|
528
|
-
|
|
529
|
-
mediaRecorder.current.ondataavailable = (event) => {
|
|
530
|
-
if (typeof event.data === 'undefined') return;
|
|
531
|
-
if (event.data.size === 0) return;
|
|
532
|
-
localAudioChunks.push(event.data);
|
|
533
|
-
};
|
|
534
|
-
|
|
535
|
-
setAudioChunks(localAudioChunks);
|
|
536
|
-
};
|
|
537
|
-
|
|
538
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
539
|
-
const stopRecording = () => {
|
|
540
|
-
if (!mediaRecorder.current) return;
|
|
541
|
-
mediaRecorder.current.stop();
|
|
542
|
-
|
|
543
|
-
mediaRecorder.current.onstop = () => {
|
|
544
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
545
|
-
const mimeContent = window.MediaRecorder.isTypeSupported(
|
|
546
|
-
'audio/mp4;codecs=mp4a',
|
|
547
|
-
)
|
|
548
|
-
? 'audio/mp4;codecs=mp4a'
|
|
549
|
-
: 'audio/webm;codecs=opus';
|
|
550
|
-
// const audioBlob = new Blob(audioChunks, { type: mimeContent }); // mimeType
|
|
551
|
-
// const mp4Blob = new Blob(recordedChunks, { type: 'video/mp4' });
|
|
552
|
-
|
|
553
|
-
// const audioBlob = new Blob(audioChunks, { type: 'video/mp4' }); // mimeType
|
|
554
|
-
// const audioBlob = new Blob(audioChunks, { type: 'audio/mp4' }); // mimeType
|
|
555
|
-
const audioBlob = new Blob(audioChunks, { type: 'audio/mp4' });
|
|
556
|
-
|
|
557
|
-
setResultAudioBlob(audioBlob);
|
|
558
|
-
|
|
559
|
-
setAudioChunks([]);
|
|
560
|
-
//
|
|
561
|
-
stream?.getAudioTracks().forEach((track) => {
|
|
562
|
-
track.stop();
|
|
563
|
-
});
|
|
564
|
-
setPermission(false);
|
|
565
|
-
//
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
|
|
569
|
-
const blobToFile = (theBlob: Blob, fileName: string): File => {
|
|
570
|
-
const b: any = theBlob;
|
|
571
|
-
|
|
572
|
-
// A Blob() is almost a File() - it's just missing the two properties below which we will add
|
|
573
|
-
b.lastModifiedDate = new Date();
|
|
574
|
-
b.name = fileName;
|
|
575
|
-
|
|
576
|
-
// Cast to a File() type
|
|
577
|
-
const resultFile = theBlob as unknown as File;
|
|
578
|
-
|
|
579
|
-
return resultFile;
|
|
580
|
-
};
|
|
581
|
-
|
|
582
|
-
function sendTextMessageActions(textToSend: string) {
|
|
583
|
-
if (isOnline) {
|
|
584
|
-
// closeReplyMessageFlowHandler
|
|
585
|
-
if (messagesViewModel?.loading) return;
|
|
586
|
-
// setVoiceMessage(true);
|
|
587
|
-
if (textToSend.length > 0 && textToSend.length <= 1000) {
|
|
588
|
-
setMessageText('');
|
|
589
|
-
if (showReplyMessage && messagesToReply?.length > 0) {
|
|
590
|
-
const replyData: ReplyMessagesParams = {
|
|
591
|
-
messagesToReply,
|
|
592
|
-
relatedTextMessage: textToSend,
|
|
593
|
-
};
|
|
594
|
-
|
|
595
|
-
repliedActions(replyData);
|
|
596
|
-
} else {
|
|
597
|
-
messagesViewModel.sendTextMessage(textToSend);
|
|
598
|
-
setMessageText('');
|
|
599
|
-
}
|
|
600
|
-
setMessageText('');
|
|
601
|
-
} else {
|
|
602
|
-
setWarningErrorText(
|
|
603
|
-
'length of text message must be less then 1000 chars.',
|
|
604
|
-
);
|
|
605
|
-
setTimeout(() => {
|
|
606
|
-
setWarningErrorText('');
|
|
607
|
-
}, 3000);
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
const ChangeFileHandler = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
613
|
-
if (isOnline) {
|
|
614
|
-
const reader = new FileReader();
|
|
615
|
-
const file = event.currentTarget.files
|
|
616
|
-
? event.currentTarget.files[0]
|
|
617
|
-
: null;
|
|
618
|
-
|
|
619
|
-
reader.onloadend = () => {
|
|
620
|
-
setFileToSend(file);
|
|
621
|
-
};
|
|
622
|
-
|
|
623
|
-
if (file !== null) reader.readAsDataURL(file);
|
|
624
|
-
}
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
const handleOnReply = (message: MessageEntity): void => {
|
|
628
|
-
setMessagesToReply([message]);
|
|
629
|
-
setShowReplyMessage(true);
|
|
630
|
-
};
|
|
631
|
-
|
|
632
|
-
const handleSendData = (
|
|
633
|
-
dialogsForForward: DialogEntity[],
|
|
634
|
-
messagesForForward: MessageEntity[],
|
|
635
|
-
relatedText: string,
|
|
636
|
-
) => {
|
|
637
|
-
const forwardingData: ForwardMessagesParams = {
|
|
638
|
-
messagesToForward: messagesForForward,
|
|
639
|
-
targetDialogs: dialogsForForward,
|
|
640
|
-
relatedTextMessage:
|
|
641
|
-
relatedText || MessageDTOMapper.FORWARD_MESSAGE_PREFIX,
|
|
642
|
-
};
|
|
643
|
-
|
|
644
|
-
messagesViewModel
|
|
645
|
-
.sendForwardedMessages(forwardingData)
|
|
646
|
-
.then((opResult: boolean) => {
|
|
647
|
-
if (opResult) {
|
|
648
|
-
toast('Message have been forwarded');
|
|
649
|
-
} else {
|
|
650
|
-
toast('Message have not been forwarded');
|
|
651
|
-
}
|
|
652
|
-
forwardMessageModal.toggleModal();
|
|
653
|
-
|
|
654
|
-
return null;
|
|
655
|
-
})
|
|
656
|
-
.catch((reason) => {
|
|
657
|
-
const errorMessage = stringifyError(reason);
|
|
658
|
-
|
|
659
|
-
forwardMessageModal.toggleModal();
|
|
660
|
-
showErrorMessage(errorMessage);
|
|
661
|
-
});
|
|
662
|
-
};
|
|
663
|
-
|
|
664
|
-
function getSectionData(messages2View: MessageEntity[]) {
|
|
665
|
-
const groupMessages: { [date: string]: MessageEntity[] } = {};
|
|
666
|
-
const reversedMessages = [...messages2View].reverse();
|
|
667
|
-
|
|
668
|
-
reversedMessages.forEach((message) => {
|
|
669
|
-
const date = new Date(message.created_at);
|
|
670
|
-
|
|
671
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
672
|
-
|
|
673
|
-
const dateString = date.toISOString();
|
|
674
|
-
|
|
675
|
-
groupMessages[dateString] = [
|
|
676
|
-
...(groupMessages[dateString] || []),
|
|
677
|
-
message,
|
|
678
|
-
];
|
|
679
|
-
});
|
|
680
|
-
Object.keys(groupMessages).forEach((date) => {
|
|
681
|
-
groupMessages[date].sort((a, b) => a.date_sent - b.date_sent);
|
|
682
|
-
});
|
|
683
|
-
const sections: SectionItem<MessageEntity>[] = Object.keys(groupMessages)
|
|
684
|
-
.sort((a, b) => a.localeCompare(b))
|
|
685
|
-
.map((date) => ({
|
|
686
|
-
title: date,
|
|
687
|
-
data: { [date]: groupMessages[date] },
|
|
688
|
-
}));
|
|
689
|
-
// const sections: SectionItem<MessageEntity>[] = Object.keys(
|
|
690
|
-
// groupMessages,
|
|
691
|
-
// ).map((date) => ({
|
|
692
|
-
// title: date,
|
|
693
|
-
// data: { [date]: groupMessages[date] },
|
|
694
|
-
// }));
|
|
695
|
-
|
|
696
|
-
return sections;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
const handleHeightChange = (newHeight: number) => {
|
|
700
|
-
console.log('The new height is:', newHeight);
|
|
701
|
-
setClientHeight(newHeight);
|
|
702
|
-
};
|
|
703
|
-
|
|
704
|
-
const leaveDialogHandler = (dialog: DialogEntity) => {
|
|
705
|
-
if (isOnline) {
|
|
706
|
-
setDialogToLeave(dialog);
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
|
-
|
|
710
|
-
const handleDialogOnClick = () => {
|
|
711
|
-
if (isOpen) {
|
|
712
|
-
setDialogToLeave(undefined);
|
|
713
|
-
}
|
|
714
|
-
setIsOpen((state) => !state);
|
|
715
|
-
};
|
|
716
|
-
|
|
717
|
-
const [isLeaving, setIsLeaving] = useState(false);
|
|
718
|
-
const toastLeavingId = React.useRef(null);
|
|
719
|
-
const handleLeaveDialog = () => {
|
|
720
|
-
if (dialogToLeave) {
|
|
721
|
-
setIsLeaving(true);
|
|
722
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
723
|
-
// @ts-ignore
|
|
724
|
-
toastLeavingId.current = toast('leaving dialog', {
|
|
725
|
-
autoClose: false,
|
|
726
|
-
isLoading: true,
|
|
727
|
-
});
|
|
728
|
-
// eslint-disable-next-line promise/catch-or-return
|
|
729
|
-
dialogsViewModel
|
|
730
|
-
.deleteDialog(dialogToLeave as GroupDialogEntity)
|
|
731
|
-
.then((result) => {
|
|
732
|
-
// eslint-disable-next-line promise/always-return
|
|
733
|
-
if (!result) {
|
|
734
|
-
toast('Dialog have not been left');
|
|
735
|
-
}
|
|
736
|
-
handleDialogOnClick();
|
|
737
|
-
})
|
|
738
|
-
.catch((e) => {
|
|
739
|
-
console.log(e);
|
|
740
|
-
toast("Can't leave dialog");
|
|
741
|
-
})
|
|
742
|
-
.finally(() => {
|
|
743
|
-
setIsLeaving(false);
|
|
744
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
745
|
-
// @ts-ignore
|
|
746
|
-
toast.dismiss(toastLeavingId.current);
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
};
|
|
750
|
-
|
|
751
|
-
const createDialogHandler = () => {
|
|
752
|
-
if (isOnline) {
|
|
753
|
-
newModal.toggleModal();
|
|
754
|
-
}
|
|
755
|
-
};
|
|
756
|
-
|
|
757
|
-
useEffect(() => {
|
|
758
|
-
const codeVersion = '0.3.1';
|
|
759
|
-
|
|
760
|
-
console.log(`React UIKit CODE VERSION IS ${codeVersion}`);
|
|
761
|
-
if (isAuthProcessed()) {
|
|
762
|
-
const pagination: Pagination = new Pagination();
|
|
763
|
-
|
|
764
|
-
dialogsViewModel?.getDialogs(pagination);
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
return () => {
|
|
768
|
-
dialogsViewModel.release();
|
|
769
|
-
};
|
|
770
|
-
}, []);
|
|
771
|
-
useEffect(() => {
|
|
772
|
-
if (isAuthProcessed()) {
|
|
773
|
-
const pagination: Pagination = new Pagination();
|
|
774
|
-
|
|
775
|
-
dialogsViewModel?.getDialogs(pagination);
|
|
776
|
-
}
|
|
777
|
-
}, [currentContext.InitParams]);
|
|
778
|
-
useEffect(() => {
|
|
779
|
-
if (isMobile) {
|
|
780
|
-
if (!selectedDialog) {
|
|
781
|
-
setShowDialogList(true);
|
|
782
|
-
} else {
|
|
783
|
-
setShowDialogList(false);
|
|
784
|
-
}
|
|
785
|
-
const canShowMessages =
|
|
786
|
-
selectedDialog && !(showDialogInformation && needDialogInformation);
|
|
787
|
-
|
|
788
|
-
if (canShowMessages) {
|
|
789
|
-
setShowDialogMessages(true);
|
|
790
|
-
} else {
|
|
791
|
-
setShowDialogMessages(false);
|
|
792
|
-
}
|
|
793
|
-
if (selectedDialog && showDialogInformation)
|
|
794
|
-
setShowDialogInformation(true);
|
|
795
|
-
else setShowDialogInformation(false);
|
|
796
|
-
} else {
|
|
797
|
-
setShowDialogList(true);
|
|
798
|
-
setShowDialogMessages(true);
|
|
799
|
-
setShowDialogInformation(true);
|
|
800
|
-
}
|
|
801
|
-
//
|
|
802
|
-
// const sizeChangingLogString = `SIZE INFO: height: ${height.toString()} clientHeight: ${clientHeight} width: ${width.toString()} breakpont: ${breakpoint.toString()} isMobile:
|
|
803
|
-
// ${isMobile?.toString()} selectedDialog:
|
|
804
|
-
// ${selectedDialog ? 'true' : 'false'} showDialogMessages:
|
|
805
|
-
// ${showDialogMessages?.toString()} showDialogList:
|
|
806
|
-
// ${showDialogList?.toString()} showDialogInformation:
|
|
807
|
-
// ${showDialogInformation?.toString()}`;
|
|
808
|
-
//
|
|
809
|
-
// console.log(sizeChangingLogString);
|
|
810
|
-
}, [isMobile]);
|
|
811
|
-
useEffect(() => {
|
|
812
|
-
if (browserOnline) {
|
|
813
|
-
setIsOnline(true);
|
|
814
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/ban-ts-comment
|
|
815
|
-
// @ts-ignore
|
|
816
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
817
|
-
toast.dismiss(toastConnectionErrorId.current);
|
|
818
|
-
} else {
|
|
819
|
-
setIsOnline(false);
|
|
820
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/ban-ts-comment
|
|
821
|
-
// @ts-ignore
|
|
822
|
-
toastConnectionErrorId.current = toast('Connection ...', {
|
|
823
|
-
autoClose: false,
|
|
824
|
-
isLoading: true,
|
|
825
|
-
});
|
|
826
|
-
}
|
|
827
|
-
}, [browserOnline && connectionStatus]);
|
|
828
|
-
useEffect(() => {
|
|
829
|
-
if (!isOnline) {
|
|
830
|
-
setNeedRefresh(true);
|
|
831
|
-
}
|
|
832
|
-
}, [isOnline]);
|
|
833
|
-
useEffect(() => {
|
|
834
|
-
if (isOnline && needRefresh) {
|
|
835
|
-
if (messagesViewModel.entity) {
|
|
836
|
-
messagesViewModel.getMessages(new Pagination(0, messagePerPage));
|
|
837
|
-
|
|
838
|
-
setNeedRefresh(false);
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
}, [isOnline]);
|
|
842
|
-
useEffect(() => {
|
|
843
|
-
if (dialogsViewModel.entity) {
|
|
844
|
-
getDialogPhotoFileForPreview().catch();
|
|
845
|
-
userViewModel.entity = dialogsViewModel.entity;
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
return () => {
|
|
849
|
-
if (dialogAvatarUrl) {
|
|
850
|
-
URL.revokeObjectURL(dialogAvatarUrl);
|
|
851
|
-
}
|
|
852
|
-
};
|
|
853
|
-
}, [dialogsViewModel.entity]);
|
|
854
|
-
useEffect(() => {
|
|
855
|
-
console.log(
|
|
856
|
-
`Clear selected dialog: ${
|
|
857
|
-
selectedDialog?.name || 'Dialog Name is empty'
|
|
858
|
-
}`,
|
|
859
|
-
);
|
|
860
|
-
if (!dialogsViewModel.entity) {
|
|
861
|
-
setSelectedDialog(undefined);
|
|
862
|
-
}
|
|
863
|
-
}, [dialogsViewModel.entity]);
|
|
864
|
-
useEffect(() => {
|
|
865
|
-
messagesViewModel.entity = dialogsViewModel.entity;
|
|
866
|
-
// setMessagesToView([]);
|
|
867
|
-
setMessageText('');
|
|
868
|
-
}, [dialogsViewModel.entity]);
|
|
869
|
-
useEffect(() => {
|
|
870
|
-
if (userViewModel.entity) {
|
|
871
|
-
userViewModel.getUsers();
|
|
872
|
-
}
|
|
873
|
-
}, [userViewModel.entity]);
|
|
874
|
-
useEffect(() => {
|
|
875
|
-
if (selectedDialog && selectedDialog) {
|
|
876
|
-
dialogsViewModel.entity = selectedDialog;
|
|
877
|
-
userViewModel.entity = selectedDialog;
|
|
878
|
-
|
|
879
|
-
if (isMobile) {
|
|
880
|
-
setShowDialogList(false);
|
|
881
|
-
setShowDialogMessages(true);
|
|
882
|
-
}
|
|
883
|
-
} else {
|
|
884
|
-
setShowDialogList(true);
|
|
885
|
-
}
|
|
886
|
-
}, [selectedDialog]);
|
|
887
|
-
useEffect(() => {
|
|
888
|
-
if (messagesViewModel.entity) {
|
|
889
|
-
messagesViewModel.getMessages(new Pagination(0, messagePerPage));
|
|
890
|
-
}
|
|
891
|
-
}, [messagesViewModel.entity]);
|
|
892
|
-
useEffect(() => {
|
|
893
|
-
if (!isMobile && messagesViewModel.entity) {
|
|
894
|
-
dialogsViewModel.setWaitLoadingStatus(messagesViewModel?.loading);
|
|
895
|
-
const timeoutId = setTimeout(() => {
|
|
896
|
-
dialogsViewModel.setWaitLoadingStatus(false); // wait only for 3 sec
|
|
897
|
-
}, 3000);
|
|
898
|
-
|
|
899
|
-
return () => clearTimeout(timeoutId);
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
return () => {
|
|
903
|
-
// Placeholder: Cleanup handler is not required
|
|
904
|
-
};
|
|
905
|
-
}, [messagesViewModel?.loading]);
|
|
906
|
-
useEffect(() => {
|
|
907
|
-
const MAXSIZE = maxFileSize || 90 * 1000000;
|
|
908
|
-
const MAXSIZE_FOR_MESSAGE = MAXSIZE / (1024 * 1024);
|
|
909
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
910
|
-
const flag = fileToSend?.size && fileToSend?.size < MAXSIZE;
|
|
911
|
-
|
|
912
|
-
if (fileToSend?.size && fileToSend?.size < MAXSIZE) {
|
|
913
|
-
if (showReplyMessage && messagesToReply?.length > 0) {
|
|
914
|
-
const replyData: ReplyMessagesParams = {
|
|
915
|
-
messagesToReply,
|
|
916
|
-
relatedFileMessage: fileToSend,
|
|
917
|
-
relatedTextMessage:
|
|
918
|
-
messageText || MessageDTOMapper.REPLY_MESSAGE_PREFIX,
|
|
919
|
-
};
|
|
920
|
-
|
|
921
|
-
repliedActions(replyData);
|
|
922
|
-
} else if (isOnline) {
|
|
923
|
-
// eslint-disable-next-line promise/catch-or-return
|
|
924
|
-
messagesViewModel
|
|
925
|
-
.sendAttachmentMessage(fileToSend)
|
|
926
|
-
.then((resultOperation) => {
|
|
927
|
-
// eslint-disable-next-line promise/always-return
|
|
928
|
-
if (!resultOperation) {
|
|
929
|
-
toast(`Incorrect data`);
|
|
930
|
-
}
|
|
931
|
-
})
|
|
932
|
-
.finally(() => {
|
|
933
|
-
setFileToSend(null);
|
|
934
|
-
});
|
|
935
|
-
}
|
|
936
|
-
} else if (fileToSend) {
|
|
937
|
-
toast(
|
|
938
|
-
`file size ${formatFileSize(
|
|
939
|
-
fileToSend?.size,
|
|
940
|
-
)} must be less then ${MAXSIZE_FOR_MESSAGE} mb.`,
|
|
941
|
-
);
|
|
942
|
-
setFileToSend(null);
|
|
943
|
-
}
|
|
944
|
-
}, [fileToSend]);
|
|
945
|
-
useEffect(() => {
|
|
946
|
-
const fileExt = 'mp4';
|
|
947
|
-
|
|
948
|
-
if (resultAudioBlob) {
|
|
949
|
-
const voiceMessage = blobToFile(
|
|
950
|
-
resultAudioBlob,
|
|
951
|
-
`${userName || ''}_voice_message.${fileExt}`,
|
|
952
|
-
);
|
|
953
|
-
|
|
954
|
-
setFileToSend(voiceMessage);
|
|
955
|
-
if (useAudioWidget) {
|
|
956
|
-
setUseAudioWidget(false);
|
|
957
|
-
}
|
|
958
|
-
//
|
|
959
|
-
}
|
|
960
|
-
}, [resultAudioBlob]);
|
|
961
|
-
useEffect(() => {
|
|
962
|
-
// setFileToSend(null);
|
|
963
|
-
if (isRecording) {
|
|
964
|
-
if (!permission) {
|
|
965
|
-
// eslint-disable-next-line promise/catch-or-return,promise/always-return
|
|
966
|
-
getMicrophonePermission().catch(() => {
|
|
967
|
-
showErrorMessage(`Have no audio.`);
|
|
968
|
-
});
|
|
969
|
-
} else {
|
|
970
|
-
// eslint-disable-next-line promise/catch-or-return,promise/always-return
|
|
971
|
-
startRecording().then(() => {
|
|
972
|
-
setWarningErrorText(`Your voice is recording during for 1 minutes`);
|
|
973
|
-
});
|
|
974
|
-
}
|
|
975
|
-
} else {
|
|
976
|
-
if (permission && mediaRecorder.current) {
|
|
977
|
-
stopRecording();
|
|
978
|
-
}
|
|
979
|
-
setWarningErrorText('');
|
|
980
|
-
}
|
|
981
|
-
}, [isRecording]);
|
|
982
|
-
useEffect(() => {
|
|
983
|
-
if (isRecording && permission) {
|
|
984
|
-
// eslint-disable-next-line promise/always-return,promise/catch-or-return
|
|
985
|
-
startRecording().then(() => {
|
|
986
|
-
setWarningErrorText(`Your voice is recording during for 1 minutes`);
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
|
-
}, [permission]);
|
|
990
|
-
useEffect(() => {
|
|
991
|
-
setWaitAIWidget(false);
|
|
992
|
-
if (
|
|
993
|
-
defaultAIRephraseWidget?.textToContent &&
|
|
994
|
-
defaultAIRephraseWidget?.textToContent.length > 0
|
|
995
|
-
) {
|
|
996
|
-
setMessageText(defaultAIRephraseWidget?.textToContent);
|
|
997
|
-
}
|
|
998
|
-
}, [defaultAIRephraseWidget?.textToContent]);
|
|
999
|
-
useEffect(() => {
|
|
1000
|
-
setWaitAIWidget(false);
|
|
1001
|
-
}, [defaultAITranslateWidget?.textToContent]);
|
|
1002
|
-
useEffect(() => {
|
|
1003
|
-
setWaitAIWidget(false);
|
|
1004
|
-
if (
|
|
1005
|
-
defaultAIAssistWidget?.textToContent &&
|
|
1006
|
-
defaultAIAssistWidget?.textToContent.length > 0
|
|
1007
|
-
) {
|
|
1008
|
-
setMessageText(defaultAIAssistWidget?.textToContent);
|
|
1009
|
-
}
|
|
1010
|
-
}, [defaultAIAssistWidget?.textToContent]);
|
|
1011
|
-
useEffect(() => {
|
|
1012
|
-
if (isMobile) {
|
|
1013
|
-
if (needDialogInformation) {
|
|
1014
|
-
setShowDialogMessages(false);
|
|
1015
|
-
setShowDialogInformation(true);
|
|
1016
|
-
} else {
|
|
1017
|
-
setShowDialogMessages(true);
|
|
1018
|
-
setShowDialogInformation(false);
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
}, [needDialogInformation]);
|
|
1022
|
-
useEffect(() => {
|
|
1023
|
-
if (dialogToLeave) {
|
|
1024
|
-
handleDialogOnClick();
|
|
1025
|
-
}
|
|
1026
|
-
}, [dialogToLeave]);
|
|
1027
|
-
|
|
1028
|
-
return (
|
|
1029
|
-
<ToastProvider>
|
|
1030
|
-
<div className="qb-uikit-layout">
|
|
1031
|
-
<div
|
|
1032
|
-
style={{
|
|
1033
|
-
position: 'absolute',
|
|
1034
|
-
top: '0',
|
|
1035
|
-
left: '0',
|
|
1036
|
-
width: '100%',
|
|
1037
|
-
height: '100%',
|
|
1038
|
-
backgroundColor: 'rgba(0, 0, 0, 0.05)',
|
|
1039
|
-
zIndex: '100',
|
|
1040
|
-
display:
|
|
1041
|
-
isLeaving || (messagesViewModel && messagesViewModel.loading)
|
|
1042
|
-
? 'block'
|
|
1043
|
-
: 'none',
|
|
1044
|
-
}}
|
|
1045
|
-
/>
|
|
1046
|
-
<DesktopLayout
|
|
1047
|
-
mainContainerStyles={{
|
|
1048
|
-
minHeight: workHeight,
|
|
1049
|
-
maxHeight: workHeight,
|
|
1050
|
-
}}
|
|
1051
|
-
onHeightChange={handleHeightChange}
|
|
1052
|
-
theme={theme}
|
|
1053
|
-
dialogsView={
|
|
1054
|
-
showDialogList ? (
|
|
1055
|
-
<DialogList
|
|
1056
|
-
disableAction={!isOnline}
|
|
1057
|
-
scrollableHeight={dialogListScrollableHeight}
|
|
1058
|
-
// subHeaderContent={<CompanyLogo />}
|
|
1059
|
-
// upHeaderContent={<CompanyLogo />}
|
|
1060
|
-
dialogListViewModel={dialogsViewModel} // 1 Get 2 Update UseCase
|
|
1061
|
-
selectedDialog={dialogsViewModel.entity}
|
|
1062
|
-
onDialogSelected={selectDialogActions}
|
|
1063
|
-
onCreateDialog={createDialogHandler}
|
|
1064
|
-
onLeaveDialog={leaveDialogHandler}
|
|
1065
|
-
additionalSettings={{
|
|
1066
|
-
withoutHeader: false,
|
|
1067
|
-
themeHeader: theme,
|
|
1068
|
-
themePreview: theme,
|
|
1069
|
-
useSubHeader: false,
|
|
1070
|
-
useUpHeader: false,
|
|
1071
|
-
}}
|
|
1072
|
-
/>
|
|
1073
|
-
) : null
|
|
1074
|
-
}
|
|
1075
|
-
dialogMessagesView={
|
|
1076
|
-
showDialogMessages &&
|
|
1077
|
-
selectedDialog &&
|
|
1078
|
-
selectedDialog &&
|
|
1079
|
-
dialogsViewModel.entity ? (
|
|
1080
|
-
<Dialog
|
|
1081
|
-
rootStyles={{
|
|
1082
|
-
minHeight: clientContainerHeight,
|
|
1083
|
-
maxHeight: clientContainerHeight,
|
|
1084
|
-
}}
|
|
1085
|
-
messagesContainerStyles={
|
|
1086
|
-
isMobile
|
|
1087
|
-
? {
|
|
1088
|
-
minHeight: messagesContainerMobileHeight,
|
|
1089
|
-
maxHeight: messagesContainerMobileHeight,
|
|
1090
|
-
}
|
|
1091
|
-
: {
|
|
1092
|
-
minHeight: messagesContainerHeight,
|
|
1093
|
-
maxHeight: messagesContainerHeight,
|
|
1094
|
-
}
|
|
1095
|
-
}
|
|
1096
|
-
messagesViewModel={messagesViewModel}
|
|
1097
|
-
warningErrorText={warningErrorText}
|
|
1098
|
-
// subHeaderContent={<CompanyLogo />}
|
|
1099
|
-
// upHeaderContent={<CompanyLogo />}
|
|
1100
|
-
renderHeader={
|
|
1101
|
-
<Header
|
|
1102
|
-
title={dialogsViewModel.entity.name}
|
|
1103
|
-
avatar={renderIconForTypeDialog(dialogsViewModel.entity)}
|
|
1104
|
-
onGoBack={() => setSelectedDialog(undefined)}
|
|
1105
|
-
className="dialog-header__line"
|
|
1106
|
-
>
|
|
1107
|
-
<div className="dialog-header-right">
|
|
1108
|
-
<InformationSvg
|
|
1109
|
-
className="dialog-header-right__icon"
|
|
1110
|
-
onClick={informationOpenHandler}
|
|
1111
|
-
/>
|
|
1112
|
-
</div>
|
|
1113
|
-
</Header>
|
|
1114
|
-
}
|
|
1115
|
-
renderMessageList={
|
|
1116
|
-
messagesViewModel &&
|
|
1117
|
-
messagesViewModel.messages &&
|
|
1118
|
-
messagesViewModel.messages.length > 0 && (
|
|
1119
|
-
<SectionList
|
|
1120
|
-
resetScroll={scrollUpToDown}
|
|
1121
|
-
className="messages-container"
|
|
1122
|
-
onEndReached={fetchMoreData}
|
|
1123
|
-
onEndReachedThreshold={0.95}
|
|
1124
|
-
refreshing={needRefresh || messagesViewModel?.loading}
|
|
1125
|
-
renderSectionHeader={(section) => (
|
|
1126
|
-
<div className="message-view-container--system-message-wrapper">
|
|
1127
|
-
<div
|
|
1128
|
-
style={
|
|
1129
|
-
theme
|
|
1130
|
-
? { backgroundColor: theme.disabledElements() }
|
|
1131
|
-
: {}
|
|
1132
|
-
}
|
|
1133
|
-
className="message-view-container--system-message-wrapper__date_container"
|
|
1134
|
-
>
|
|
1135
|
-
<MessageSeparator
|
|
1136
|
-
text={section.title}
|
|
1137
|
-
type="date"
|
|
1138
|
-
/>
|
|
1139
|
-
</div>
|
|
1140
|
-
</div>
|
|
1141
|
-
)}
|
|
1142
|
-
renderItem={([, groupMessages], listRef) =>
|
|
1143
|
-
groupMessages.map((message) => (
|
|
1144
|
-
<MessageItem
|
|
1145
|
-
disableAction={!isOnline}
|
|
1146
|
-
// defaultGetSenderName={defaultGetSenderName}
|
|
1147
|
-
message={message}
|
|
1148
|
-
currentUserId={currentUserId || -1}
|
|
1149
|
-
enableForwarding={enableForwarding}
|
|
1150
|
-
enableReplying={enableReplying}
|
|
1151
|
-
onReply={(m: MessageEntity) => {
|
|
1152
|
-
handleOnReply(m);
|
|
1153
|
-
}}
|
|
1154
|
-
onForward={(m: MessageEntity) => {
|
|
1155
|
-
if (isOnline) {
|
|
1156
|
-
setForwardMessage(m);
|
|
1157
|
-
forwardMessageModal.toggleModal();
|
|
1158
|
-
}
|
|
1159
|
-
}}
|
|
1160
|
-
listRef={listRef}
|
|
1161
|
-
AIAssistWidget={defaultAIAssistWidget}
|
|
1162
|
-
AITranslateWidget={defaultAITranslateWidget}
|
|
1163
|
-
languagesForAITranslate={DefaultConfigurations.getAdditionalLanguagesForAITranslate(
|
|
1164
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
1165
|
-
currentContext.InitParams.qbConfig.configAIApi
|
|
1166
|
-
.AITranslateWidgetConfig,
|
|
1167
|
-
)}
|
|
1168
|
-
defaultTranslationLanguage={DefaultConfigurations.getDefaultLanguageForAITranslate(
|
|
1169
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
1170
|
-
currentContext.InitParams.qbConfig.configAIApi
|
|
1171
|
-
.AITranslateWidgetConfig,
|
|
1172
|
-
)}
|
|
1173
|
-
onError={(messageError: string) => {
|
|
1174
|
-
toast(messageError);
|
|
1175
|
-
}}
|
|
1176
|
-
messagesToView={messagesViewModel.messages}
|
|
1177
|
-
maxTokens={maxTokensForAIRephrase}
|
|
1178
|
-
/>
|
|
1179
|
-
))
|
|
1180
|
-
}
|
|
1181
|
-
sections={getSectionData(messagesViewModel.messages)}
|
|
1182
|
-
/>
|
|
1183
|
-
)
|
|
1184
|
-
}
|
|
1185
|
-
renderMessageInput={
|
|
1186
|
-
<MessageInput
|
|
1187
|
-
disableActions={!isOnline}
|
|
1188
|
-
previewMessage={
|
|
1189
|
-
showReplyMessage ? (
|
|
1190
|
-
<ReplyMessagePreview
|
|
1191
|
-
messages={[...messagesToReply]}
|
|
1192
|
-
userNameSentMessage={
|
|
1193
|
-
messagesToReply[0]?.sender?.full_name ||
|
|
1194
|
-
messagesToReply[0]?.sender?.login ||
|
|
1195
|
-
messagesToReply[0]?.sender?.email ||
|
|
1196
|
-
messagesToReply[0]?.sender?.id.toString() ||
|
|
1197
|
-
''
|
|
1198
|
-
}
|
|
1199
|
-
onClose={closeReplyMessageFlowHandler}
|
|
1200
|
-
/>
|
|
1201
|
-
) : undefined
|
|
1202
|
-
}
|
|
1203
|
-
value={messageText}
|
|
1204
|
-
placeholder="Type message"
|
|
1205
|
-
loading={waitAIWidget || messagesViewModel?.loading}
|
|
1206
|
-
onChange={(text: string) => {
|
|
1207
|
-
setMessageText(text);
|
|
1208
|
-
}}
|
|
1209
|
-
onChanging={() => {
|
|
1210
|
-
messagesViewModel.sendTypingTextMessage();
|
|
1211
|
-
}}
|
|
1212
|
-
onSend={(textToSend: string) => {
|
|
1213
|
-
sendTextMessageActions(textToSend);
|
|
1214
|
-
}}
|
|
1215
|
-
onAttachment={ChangeFileHandler}
|
|
1216
|
-
enableVoice={isRecording}
|
|
1217
|
-
onVoice={() => {
|
|
1218
|
-
if (messagesViewModel?.loading || !isOnline) return;
|
|
1219
|
-
setIsRecording(!isRecording);
|
|
1220
|
-
}}
|
|
1221
|
-
rephrase={
|
|
1222
|
-
<AIRephraseWidget
|
|
1223
|
-
disableActions={!isOnline}
|
|
1224
|
-
waitAIWidget={waitAIWidget}
|
|
1225
|
-
messageText={messageText}
|
|
1226
|
-
theme={theme}
|
|
1227
|
-
AIRephrase={defaultAIRephraseWidget}
|
|
1228
|
-
setWaitAIWidget={setWaitAIWidget}
|
|
1229
|
-
setPrevValueText={(prevValue) => {
|
|
1230
|
-
setMessageText(prevValue);
|
|
1231
|
-
}}
|
|
1232
|
-
setMessageErrorToast={(e: string) => {
|
|
1233
|
-
toast(e);
|
|
1234
|
-
}}
|
|
1235
|
-
messagesToView={messagesViewModel.messages}
|
|
1236
|
-
currentUserId={currentUserId || -1}
|
|
1237
|
-
maxTokensForAIRephrase={maxTokensForAIRephrase}
|
|
1238
|
-
rephraseTones={rephraseTones}
|
|
1239
|
-
/>
|
|
1240
|
-
}
|
|
1241
|
-
/>
|
|
1242
|
-
}
|
|
1243
|
-
maxWidthToResize={maxWidthToResizing}
|
|
1244
|
-
theme={theme}
|
|
1245
|
-
/>
|
|
1246
|
-
) : (
|
|
1247
|
-
!isMobile && (
|
|
1248
|
-
<div
|
|
1249
|
-
className="empty-chat-placeholder"
|
|
1250
|
-
style={{
|
|
1251
|
-
minHeight: clientContainerHeight,
|
|
1252
|
-
maxHeight: clientContainerHeight,
|
|
1253
|
-
}}
|
|
1254
|
-
>
|
|
1255
|
-
<Placeholder
|
|
1256
|
-
text={['Select a chat to start messaging.']}
|
|
1257
|
-
className="empty-chat-history-placeholder"
|
|
1258
|
-
/>
|
|
1259
|
-
</div>
|
|
1260
|
-
)
|
|
1261
|
-
)
|
|
1262
|
-
}
|
|
1263
|
-
dialogInfoView={
|
|
1264
|
-
showDialogInformation &&
|
|
1265
|
-
selectedDialog &&
|
|
1266
|
-
needDialogInformation &&
|
|
1267
|
-
(isAllMembersShow ? (
|
|
1268
|
-
<MembersList
|
|
1269
|
-
closeInformationHandler={() => {
|
|
1270
|
-
setIsAllMembersShow(false);
|
|
1271
|
-
}}
|
|
1272
|
-
members={userViewModel.users}
|
|
1273
|
-
maxHeight={dialogListScrollableHeight}
|
|
1274
|
-
/>
|
|
1275
|
-
) : (
|
|
1276
|
-
<DialogInfo
|
|
1277
|
-
disableAction={!isOnline}
|
|
1278
|
-
onShowAllMemberClick={(value: boolean) => {
|
|
1279
|
-
setIsAllMembersShow(value);
|
|
1280
|
-
}}
|
|
1281
|
-
users={userViewModel.users}
|
|
1282
|
-
rootStyles={{
|
|
1283
|
-
minHeight: clientContainerHeight,
|
|
1284
|
-
maxHeight: clientContainerHeight,
|
|
1285
|
-
}}
|
|
1286
|
-
// subHeaderContent={
|
|
1287
|
-
// <div>
|
|
1288
|
-
// <p>v0.3.1-beta.5</p>
|
|
1289
|
-
// </div>
|
|
1290
|
-
// }
|
|
1291
|
-
// upHeaderContent={<CompanyLogo />}
|
|
1292
|
-
dialog={selectedDialog}
|
|
1293
|
-
dialogViewModel={dialogsViewModel}
|
|
1294
|
-
onCloseDialogInformationHandler={informationCloseHandler}
|
|
1295
|
-
/>
|
|
1296
|
-
))
|
|
1297
|
-
}
|
|
1298
|
-
/>
|
|
1299
|
-
<DialogWindow
|
|
1300
|
-
open={isOpen}
|
|
1301
|
-
title="Leave dialog?"
|
|
1302
|
-
onClose={handleDialogOnClick}
|
|
1303
|
-
>
|
|
1304
|
-
<div className="dialog-leave-container">
|
|
1305
|
-
<Button variant="outlined" onClick={handleDialogOnClick}>
|
|
1306
|
-
Cancel
|
|
1307
|
-
</Button>
|
|
1308
|
-
<Button variant="danger" onClick={handleLeaveDialog}>
|
|
1309
|
-
Leave
|
|
1310
|
-
</Button>
|
|
1311
|
-
</div>
|
|
1312
|
-
</DialogWindow>
|
|
1313
|
-
<DialogWindow
|
|
1314
|
-
title="New dialog"
|
|
1315
|
-
onClose={newModal.toggleModal}
|
|
1316
|
-
open={newModal.isOpen}
|
|
1317
|
-
className={
|
|
1318
|
-
isMobile
|
|
1319
|
-
? 'dialog-list-new-dialog-mobile-container'
|
|
1320
|
-
: 'dialog-list-new-dialog-desktop-container'
|
|
1321
|
-
}
|
|
1322
|
-
>
|
|
1323
|
-
<CreateNewDialogFlow
|
|
1324
|
-
dialogsViewModel={dialogsViewModel}
|
|
1325
|
-
onCancel={newModal.toggleModal}
|
|
1326
|
-
onFinished={(newDialog) => {
|
|
1327
|
-
newModal.toggleModal();
|
|
1328
|
-
setSelectedDialog(newDialog);
|
|
1329
|
-
}}
|
|
1330
|
-
isOnline={isOnline}
|
|
1331
|
-
/>
|
|
1332
|
-
</DialogWindow>
|
|
1333
|
-
{selectedDialog && (
|
|
1334
|
-
<DialogWindow
|
|
1335
|
-
title="Forward"
|
|
1336
|
-
open={forwardMessageModal.isOpen}
|
|
1337
|
-
onClose={forwardMessageModal.toggleModal}
|
|
1338
|
-
>
|
|
1339
|
-
<ForwardMessageFlow
|
|
1340
|
-
messages={[forwardMessage!]}
|
|
1341
|
-
currentDialog={selectedDialog}
|
|
1342
|
-
currentUserName={userName || ''}
|
|
1343
|
-
dialogs={dialogsViewModel.dialogs}
|
|
1344
|
-
onSendData={handleSendData}
|
|
1345
|
-
disableActions={!isOnline}
|
|
1346
|
-
/>
|
|
1347
|
-
</DialogWindow>
|
|
1348
|
-
)}
|
|
1349
|
-
</div>
|
|
1350
|
-
</ToastProvider>
|
|
1351
|
-
);
|
|
1352
|
-
};
|
|
1353
|
-
|
|
1354
|
-
export default QuickBloxUIKitDesktopLayout;
|