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,579 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import { QBDataContextType } from '../../providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider';
|
|
3
|
-
import { Pagination } from '../../../Domain/repository/Pagination';
|
|
4
|
-
import { DialogListViewModel } from './DialogListViewModel';
|
|
5
|
-
import { PublicDialogEntity } from '../../../Domain/entity/PublicDialogEntity';
|
|
6
|
-
import { DialogEntity } from '../../../Domain/entity/DialogEntity';
|
|
7
|
-
import { SubscribeToDialogsUpdatesUseCaseWithMock } from '../../../Domain/use_cases/SubscribeToDialogsUpdatesUseCaseWithMock';
|
|
8
|
-
import DialogsRepository from '../../../Data/repository/DialogsRepository';
|
|
9
|
-
import { GetAllDialogsUseCaseWithMock } from '../../../Domain/use_cases/GetAllDialogsUseCaseWithMock';
|
|
10
|
-
import { CreateDialogUseCase } from '../../../Domain/use_cases/CreateDialogUseCase';
|
|
11
|
-
import EventMessagesRepository from '../../../Data/repository/EventMessagesRepository';
|
|
12
|
-
import { stringifyError } from '../../../utils/parse';
|
|
13
|
-
import { GroupDialogEntity } from '../../../Domain/entity/GroupDialogEntity';
|
|
14
|
-
import { UpdateDialogUseCase } from '../../../Domain/use_cases/UpdateDialogUseCase';
|
|
15
|
-
import {
|
|
16
|
-
DialogLeaveType,
|
|
17
|
-
LeaveDialogUseCase,
|
|
18
|
-
} from '../../../Domain/use_cases/LeaveDialogUseCase';
|
|
19
|
-
import { FileEntity } from '../../../Domain/entity/FileEntity';
|
|
20
|
-
import { UploadFileUseCase } from '../../../Domain/use_cases/UploadFileUseCase';
|
|
21
|
-
import { FileRepository } from '../../../Data/repository/FileRepository';
|
|
22
|
-
import { Stubs } from '../../../Data/Stubs';
|
|
23
|
-
import { SubscribeToDialogEventsUseCase } from '../../../Domain/use_cases/SubscribeToDialogEventsUseCase';
|
|
24
|
-
import EventMessageType from '../../../Domain/entity/EventMessageType';
|
|
25
|
-
import { NotificationTypes } from '../../../Domain/entity/NotificationTypes';
|
|
26
|
-
import { GetDialogByIdUseCase } from '../../../Domain/use_cases/GetDialogByIdUseCase';
|
|
27
|
-
import { DialogType } from '../../../Domain/entity/DialogTypes';
|
|
28
|
-
import { RemoveUsersFromTheDialogUseCase } from '../../../Domain/use_cases/RemoveUsersFromTheDialogUseCase';
|
|
29
|
-
import { DialogEventInfo } from '../../../Domain/entity/DialogEventInfo';
|
|
30
|
-
import { RemoteDataSource } from '../../../Data/source/remote/RemoteDataSource';
|
|
31
|
-
import { GetUsersByIdsUseCase } from '../../../Domain/use_cases/GetUsersByIdsUseCase';
|
|
32
|
-
import UsersRepository from '../../../Data/repository/UsersRepository';
|
|
33
|
-
import { UserEntity } from '../../../Domain/entity/UserEntity';
|
|
34
|
-
import { DefaultConfigurations } from '../../../Data/DefaultConfigurations';
|
|
35
|
-
import { UpdateCurrentDialogInDataSourceUseCase } from '../../../Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase';
|
|
36
|
-
|
|
37
|
-
export default function useDialogListViewModel(
|
|
38
|
-
currentContext: QBDataContextType,
|
|
39
|
-
initPagination?: Pagination,
|
|
40
|
-
): DialogListViewModel {
|
|
41
|
-
console.log('3.1. useDialogListViewModel');
|
|
42
|
-
const startPagination: Pagination = initPagination || new Pagination();
|
|
43
|
-
const [loading, setLoading] = useState(false);
|
|
44
|
-
const [error, setError] = useState('');
|
|
45
|
-
const [pagination, setPagination] = useState<Pagination>(startPagination);
|
|
46
|
-
const [dialogs, setDialogs] = useState<PublicDialogEntity[]>([]);
|
|
47
|
-
const [newDialog, setNewDialog] = useState<DialogEntity>();
|
|
48
|
-
|
|
49
|
-
//
|
|
50
|
-
const currentUserId =
|
|
51
|
-
currentContext.storage.REMOTE_DATA_SOURCE.authInformation?.userId || -1;
|
|
52
|
-
const currentUserName =
|
|
53
|
-
currentContext.storage.REMOTE_DATA_SOURCE.authInformation?.userName || '';
|
|
54
|
-
// const currentContext = useQbInitializedDataContext();
|
|
55
|
-
const remoteDataSourceMock: RemoteDataSource =
|
|
56
|
-
currentContext.storage.REMOTE_DATA_SOURCE;
|
|
57
|
-
|
|
58
|
-
const eventMessageRepository: EventMessagesRepository =
|
|
59
|
-
currentContext.storage.EVENT_MESSAGE_REPOSITORY;
|
|
60
|
-
|
|
61
|
-
const useCaseSubscribeToDialogsUpdates: SubscribeToDialogsUpdatesUseCaseWithMock =
|
|
62
|
-
new SubscribeToDialogsUpdatesUseCaseWithMock(
|
|
63
|
-
new DialogsRepository(
|
|
64
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
65
|
-
remoteDataSourceMock,
|
|
66
|
-
),
|
|
67
|
-
);
|
|
68
|
-
|
|
69
|
-
const subscribeToDialogEventsUseCase: SubscribeToDialogEventsUseCase =
|
|
70
|
-
new SubscribeToDialogEventsUseCase(
|
|
71
|
-
eventMessageRepository,
|
|
72
|
-
'DialogsViewModel',
|
|
73
|
-
);
|
|
74
|
-
//
|
|
75
|
-
const QBConfig =
|
|
76
|
-
currentContext.InitParams.qbConfig ||
|
|
77
|
-
DefaultConfigurations.getDefaultQBConfig();
|
|
78
|
-
const { regexUserName } = QBConfig.appConfig;
|
|
79
|
-
const regex = regexUserName ? new RegExp(regexUserName) : null;
|
|
80
|
-
|
|
81
|
-
async function getDialogs(currentPagination: Pagination) {
|
|
82
|
-
setLoading(true);
|
|
83
|
-
const useCaseGetAllDialogs: GetAllDialogsUseCaseWithMock =
|
|
84
|
-
new GetAllDialogsUseCaseWithMock(
|
|
85
|
-
new DialogsRepository(
|
|
86
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
87
|
-
remoteDataSourceMock,
|
|
88
|
-
),
|
|
89
|
-
currentPagination,
|
|
90
|
-
);
|
|
91
|
-
|
|
92
|
-
await useCaseGetAllDialogs
|
|
93
|
-
?.execute()
|
|
94
|
-
// eslint-disable-next-line promise/always-return
|
|
95
|
-
.then((result) => {
|
|
96
|
-
const filteredDialogs: PublicDialogEntity[] = (
|
|
97
|
-
result.ResultData as PublicDialogEntity[]
|
|
98
|
-
).reduce(
|
|
99
|
-
(dialogList: PublicDialogEntity[], dialog: PublicDialogEntity) => {
|
|
100
|
-
const isPrivate = dialog.type === DialogType.private;
|
|
101
|
-
const isValidName =
|
|
102
|
-
(regex &&
|
|
103
|
-
dialog.name &&
|
|
104
|
-
dialog.name.length > 0 &&
|
|
105
|
-
regex.test(dialog.name)) ||
|
|
106
|
-
!regex;
|
|
107
|
-
|
|
108
|
-
if (isPrivate && !isValidName) {
|
|
109
|
-
// eslint-disable-next-line no-param-reassign
|
|
110
|
-
dialog.name = 'Unknown';
|
|
111
|
-
}
|
|
112
|
-
dialogList.push(dialog);
|
|
113
|
-
|
|
114
|
-
return dialogList;
|
|
115
|
-
},
|
|
116
|
-
[],
|
|
117
|
-
);
|
|
118
|
-
|
|
119
|
-
const sortedData = [...filteredDialogs].sort((a, b) => {
|
|
120
|
-
return b.lastMessage.dateSent && a.lastMessage.dateSent
|
|
121
|
-
? new Date(b.lastMessage.dateSent).getTime() -
|
|
122
|
-
new Date(a.lastMessage.dateSent).getTime()
|
|
123
|
-
: new Date(b.updatedAt).getTime() - new Date(a.updatedAt).getTime();
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
setDialogs([...sortedData]);
|
|
127
|
-
setLoading(false);
|
|
128
|
-
setPagination(result.CurrentPagination);
|
|
129
|
-
})
|
|
130
|
-
.catch((e) => {
|
|
131
|
-
console.log(
|
|
132
|
-
'call in useCaseGetAllDialogs catch....',
|
|
133
|
-
JSON.stringify(e),
|
|
134
|
-
);
|
|
135
|
-
setError(`${(e as unknown as Error).message}`);
|
|
136
|
-
setLoading(false);
|
|
137
|
-
});
|
|
138
|
-
await useCaseSubscribeToDialogsUpdates?.execute((data) => {
|
|
139
|
-
try {
|
|
140
|
-
const sortedData = [...(data as PublicDialogEntity[])].sort((a, b) => {
|
|
141
|
-
return b.lastMessage.dateSent && a.lastMessage.dateSent
|
|
142
|
-
? new Date(b.lastMessage.dateSent).getTime() -
|
|
143
|
-
new Date(a.lastMessage.dateSent).getTime()
|
|
144
|
-
: new Date(b.updatedAt).getTime() - new Date(a.updatedAt).getTime();
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
setDialogs(sortedData);
|
|
148
|
-
setLoading(false);
|
|
149
|
-
setError('');
|
|
150
|
-
} catch (e) {
|
|
151
|
-
console.log(
|
|
152
|
-
'call in useCaseSubscribeToDialogsUpdates catch....',
|
|
153
|
-
JSON.stringify(e),
|
|
154
|
-
);
|
|
155
|
-
setError(`${(e as Error).message}`);
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
const dialogUpdateHandler = (dialogInfo: DialogEventInfo) => {
|
|
161
|
-
console.log('call dialogUpdateHandler in useDialogListView:', dialogInfo);
|
|
162
|
-
if (
|
|
163
|
-
dialogInfo.eventMessageType === EventMessageType.SystemMessage
|
|
164
|
-
// || dialogInfo.eventMessageType === EventMessageType.RegularMessage
|
|
165
|
-
) {
|
|
166
|
-
if (dialogInfo.notificationTypes === NotificationTypes.UPDATE_DIALOG) {
|
|
167
|
-
if (dialogInfo.messageInfo) {
|
|
168
|
-
const { dialogId } = dialogInfo.messageInfo;
|
|
169
|
-
|
|
170
|
-
const getDialogByIdUseCase: GetDialogByIdUseCase =
|
|
171
|
-
new GetDialogByIdUseCase(
|
|
172
|
-
new DialogsRepository(
|
|
173
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
174
|
-
currentContext.storage.REMOTE_DATA_SOURCE,
|
|
175
|
-
),
|
|
176
|
-
dialogId,
|
|
177
|
-
);
|
|
178
|
-
|
|
179
|
-
// eslint-disable-next-line promise/catch-or-return
|
|
180
|
-
getDialogByIdUseCase.execute().then((updatedDialog) => {
|
|
181
|
-
// eslint-disable-next-line promise/always-return
|
|
182
|
-
if (newDialog && newDialog.id === updatedDialog.id) {
|
|
183
|
-
setNewDialog(updatedDialog);
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
} else if (
|
|
188
|
-
dialogInfo.notificationTypes === NotificationTypes.DELETE_LEAVE_DIALOG
|
|
189
|
-
) {
|
|
190
|
-
if (
|
|
191
|
-
dialogInfo.messageInfo &&
|
|
192
|
-
dialogInfo.messageInfo.sender_id === currentUserId
|
|
193
|
-
) {
|
|
194
|
-
setNewDialog(undefined);
|
|
195
|
-
}
|
|
196
|
-
} else if (
|
|
197
|
-
dialogInfo.notificationTypes === NotificationTypes.REMOVE_USER
|
|
198
|
-
) {
|
|
199
|
-
if (
|
|
200
|
-
dialogInfo.messageInfo &&
|
|
201
|
-
dialogInfo.messageInfo.dialogId === newDialog?.id
|
|
202
|
-
) {
|
|
203
|
-
setNewDialog(undefined);
|
|
204
|
-
}
|
|
205
|
-
getDialogs(pagination).catch();
|
|
206
|
-
} else if (
|
|
207
|
-
dialogInfo.notificationTypes === NotificationTypes.NEW_DIALOG
|
|
208
|
-
) {
|
|
209
|
-
if (dialogInfo.messageInfo) {
|
|
210
|
-
const { dialogId } = dialogInfo.messageInfo;
|
|
211
|
-
|
|
212
|
-
const getDialogByIdUseCase: GetDialogByIdUseCase =
|
|
213
|
-
new GetDialogByIdUseCase(
|
|
214
|
-
new DialogsRepository(
|
|
215
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
216
|
-
currentContext.storage.REMOTE_DATA_SOURCE,
|
|
217
|
-
),
|
|
218
|
-
dialogId,
|
|
219
|
-
);
|
|
220
|
-
|
|
221
|
-
// eslint-disable-next-line promise/catch-or-return,promise/always-return
|
|
222
|
-
getDialogByIdUseCase
|
|
223
|
-
.execute()
|
|
224
|
-
// eslint-disable-next-line promise/always-return
|
|
225
|
-
.then((newItem) => {
|
|
226
|
-
//
|
|
227
|
-
setDialogs((prevDialogs) => {
|
|
228
|
-
const newDialogs = [
|
|
229
|
-
...prevDialogs,
|
|
230
|
-
newItem as PublicDialogEntity,
|
|
231
|
-
];
|
|
232
|
-
|
|
233
|
-
const sortedData = [...newDialogs].sort((a, b) => {
|
|
234
|
-
return b.lastMessage.dateSent && a.lastMessage.dateSent
|
|
235
|
-
? new Date(b.lastMessage.dateSent).getTime() -
|
|
236
|
-
new Date(a.lastMessage.dateSent).getTime()
|
|
237
|
-
: new Date(b.updatedAt).getTime() -
|
|
238
|
-
new Date(a.updatedAt).getTime();
|
|
239
|
-
});
|
|
240
|
-
|
|
241
|
-
return sortedData;
|
|
242
|
-
});
|
|
243
|
-
//
|
|
244
|
-
})
|
|
245
|
-
.catch((e) => {
|
|
246
|
-
console.log(
|
|
247
|
-
'Error getDialogByIdUseCase in useDialogListViewModel: ',
|
|
248
|
-
stringifyError(e),
|
|
249
|
-
);
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
// getDialogs(pagination).catch();
|
|
253
|
-
}
|
|
254
|
-
} else if (dialogInfo.eventMessageType === EventMessageType.LocalMessage) {
|
|
255
|
-
if (dialogInfo.dialogInfo) {
|
|
256
|
-
setDialogs((prevDialogs) => {
|
|
257
|
-
const newDialogs = prevDialogs.map((dialog) => {
|
|
258
|
-
if (dialog.id === dialogInfo.dialogInfo?.id) {
|
|
259
|
-
return dialogInfo.dialogInfo as PublicDialogEntity;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
return dialog;
|
|
263
|
-
});
|
|
264
|
-
|
|
265
|
-
const sortedData = [...newDialogs].sort((a, b) => {
|
|
266
|
-
return b.lastMessage.dateSent && a.lastMessage.dateSent
|
|
267
|
-
? new Date(b.lastMessage.dateSent).getTime() -
|
|
268
|
-
new Date(a.lastMessage.dateSent).getTime()
|
|
269
|
-
: new Date(b.updatedAt).getTime() -
|
|
270
|
-
new Date(a.updatedAt).getTime();
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
// const sortedData = [...newDialogs].sort((a, b) => {
|
|
274
|
-
// return (
|
|
275
|
-
// new Date(b.lastMessage.dateSent).getTime() - new Date(a.lastMessage.dateSent).getTime()
|
|
276
|
-
// );
|
|
277
|
-
// });
|
|
278
|
-
|
|
279
|
-
return sortedData;
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
subscribeToDialogEventsUseCase
|
|
286
|
-
.execute(dialogUpdateHandler)
|
|
287
|
-
.catch((reason) => {
|
|
288
|
-
console.log(stringifyError(reason));
|
|
289
|
-
});
|
|
290
|
-
|
|
291
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
292
|
-
|
|
293
|
-
const release = () => {
|
|
294
|
-
useCaseSubscribeToDialogsUpdates.release();
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
const setWaitLoadingStatus = (status: boolean): void => {
|
|
298
|
-
setLoading(status);
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
const getSenders = async (senders: number[]) => {
|
|
302
|
-
const getUsers: GetUsersByIdsUseCase = new GetUsersByIdsUseCase(
|
|
303
|
-
new UsersRepository(
|
|
304
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
305
|
-
currentContext.storage.REMOTE_DATA_SOURCE,
|
|
306
|
-
),
|
|
307
|
-
[...senders],
|
|
308
|
-
);
|
|
309
|
-
|
|
310
|
-
let userEntites: UserEntity[] = [];
|
|
311
|
-
|
|
312
|
-
await getUsers
|
|
313
|
-
.execute()
|
|
314
|
-
// eslint-disable-next-line promise/always-return
|
|
315
|
-
.then((data) => {
|
|
316
|
-
// eslint-disable-next-line prefer-destructuring
|
|
317
|
-
userEntites = data;
|
|
318
|
-
})
|
|
319
|
-
.catch((e) => {
|
|
320
|
-
console.log('have ERROR get users :', JSON.stringify(e));
|
|
321
|
-
});
|
|
322
|
-
|
|
323
|
-
return userEntites;
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
const createDialog = async (
|
|
327
|
-
dialogInfo: GroupDialogEntity,
|
|
328
|
-
): Promise<DialogEntity> => {
|
|
329
|
-
const textInformationMessage = `${currentUserName} create the chat`;
|
|
330
|
-
const createDialogUseCase: CreateDialogUseCase = new CreateDialogUseCase(
|
|
331
|
-
eventMessageRepository,
|
|
332
|
-
new DialogsRepository(
|
|
333
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
334
|
-
remoteDataSourceMock,
|
|
335
|
-
),
|
|
336
|
-
dialogInfo,
|
|
337
|
-
textInformationMessage,
|
|
338
|
-
);
|
|
339
|
-
const resultDialog: DialogEntity = await createDialogUseCase
|
|
340
|
-
.execute()
|
|
341
|
-
.catch((e) => {
|
|
342
|
-
console.log('EXCEPTION IN CREATE NEW DIALOG: ', stringifyError(e));
|
|
343
|
-
setNewDialog(undefined);
|
|
344
|
-
|
|
345
|
-
throw new Error(stringifyError(e));
|
|
346
|
-
});
|
|
347
|
-
|
|
348
|
-
if (resultDialog) {
|
|
349
|
-
setNewDialog(resultDialog);
|
|
350
|
-
|
|
351
|
-
return Promise.resolve(resultDialog);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
return Promise.reject(resultDialog);
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
const updateDialog = async (
|
|
358
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow,@typescript-eslint/no-unused-vars
|
|
359
|
-
dialog: GroupDialogEntity,
|
|
360
|
-
): Promise<DialogEntity> => {
|
|
361
|
-
const textInformationMessage = `${currentUserName} has updated dialog`;
|
|
362
|
-
const updateDialogUseCase: UpdateDialogUseCase = new UpdateDialogUseCase(
|
|
363
|
-
eventMessageRepository,
|
|
364
|
-
new DialogsRepository(
|
|
365
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
366
|
-
remoteDataSourceMock,
|
|
367
|
-
),
|
|
368
|
-
dialog,
|
|
369
|
-
textInformationMessage,
|
|
370
|
-
);
|
|
371
|
-
|
|
372
|
-
const resultDialog: DialogEntity = await updateDialogUseCase
|
|
373
|
-
.execute()
|
|
374
|
-
.catch((e) => {
|
|
375
|
-
console.log('Error updateDialogUseCase: ', stringifyError(e));
|
|
376
|
-
throw new Error(stringifyError(e));
|
|
377
|
-
});
|
|
378
|
-
|
|
379
|
-
const { participantIds } = dialog;
|
|
380
|
-
|
|
381
|
-
dialog.newParticipantIds?.forEach((item) => {
|
|
382
|
-
if (!participantIds.includes(item)) {
|
|
383
|
-
participantIds.push(item);
|
|
384
|
-
}
|
|
385
|
-
});
|
|
386
|
-
|
|
387
|
-
const dialogForUpdate: GroupDialogEntity = {
|
|
388
|
-
...dialog,
|
|
389
|
-
participantIds,
|
|
390
|
-
};
|
|
391
|
-
|
|
392
|
-
setNewDialog(dialogForUpdate as DialogEntity);
|
|
393
|
-
|
|
394
|
-
return Promise.resolve(resultDialog);
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
const deleteDialog = async (
|
|
398
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow,@typescript-eslint/no-unused-vars
|
|
399
|
-
dialogToDelete: GroupDialogEntity,
|
|
400
|
-
): Promise<boolean> => {
|
|
401
|
-
let leaveResult = false;
|
|
402
|
-
|
|
403
|
-
if (dialogToDelete.type === DialogType.private) {
|
|
404
|
-
const textInformationMessage = `${currentUserName} has left dialog`;
|
|
405
|
-
const leaveDialogUseCase: LeaveDialogUseCase = new LeaveDialogUseCase(
|
|
406
|
-
eventMessageRepository,
|
|
407
|
-
new DialogsRepository(
|
|
408
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
409
|
-
remoteDataSourceMock,
|
|
410
|
-
),
|
|
411
|
-
dialogToDelete,
|
|
412
|
-
DialogLeaveType.delete,
|
|
413
|
-
textInformationMessage,
|
|
414
|
-
);
|
|
415
|
-
|
|
416
|
-
leaveResult = await leaveDialogUseCase.execute().catch((e) => {
|
|
417
|
-
console.log('Error leaveDialogUseCase: ', stringifyError(e));
|
|
418
|
-
throw new Error(stringifyError(e));
|
|
419
|
-
});
|
|
420
|
-
if (leaveResult) {
|
|
421
|
-
setNewDialog(undefined);
|
|
422
|
-
}
|
|
423
|
-
} else {
|
|
424
|
-
const usersForDeleteFromDialog: Array<number> = new Array<number>();
|
|
425
|
-
|
|
426
|
-
const userToDeleteId: number =
|
|
427
|
-
remoteDataSourceMock?.authInformation?.userId || 0;
|
|
428
|
-
|
|
429
|
-
usersForDeleteFromDialog.push(userToDeleteId);
|
|
430
|
-
const textInformationMessage = `${currentUserName} has left dialog`;
|
|
431
|
-
const deleteUsersFromDialog: RemoveUsersFromTheDialogUseCase =
|
|
432
|
-
new RemoveUsersFromTheDialogUseCase(
|
|
433
|
-
eventMessageRepository,
|
|
434
|
-
new DialogsRepository(
|
|
435
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
436
|
-
remoteDataSourceMock,
|
|
437
|
-
),
|
|
438
|
-
dialogToDelete,
|
|
439
|
-
usersForDeleteFromDialog,
|
|
440
|
-
textInformationMessage,
|
|
441
|
-
);
|
|
442
|
-
|
|
443
|
-
leaveResult = await deleteUsersFromDialog.execute().catch((e) => {
|
|
444
|
-
console.log(
|
|
445
|
-
'Error delete users from RemoveUsersFromDialogUseCase: ',
|
|
446
|
-
stringifyError(e),
|
|
447
|
-
);
|
|
448
|
-
throw new Error(stringifyError(e));
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
if (leaveResult) {
|
|
453
|
-
return Promise.resolve(leaveResult);
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
return Promise.reject(leaveResult);
|
|
457
|
-
};
|
|
458
|
-
|
|
459
|
-
const removeMembers = async (dialog: GroupDialogEntity): Promise<boolean> => {
|
|
460
|
-
let leaveResult = false;
|
|
461
|
-
|
|
462
|
-
if (
|
|
463
|
-
dialog.participantsToRemoveIds &&
|
|
464
|
-
dialog.participantsToRemoveIds.length > 0
|
|
465
|
-
) {
|
|
466
|
-
const usersToDelete: UserEntity[] = await getSenders(
|
|
467
|
-
dialog.participantsToRemoveIds,
|
|
468
|
-
);
|
|
469
|
-
let userNames = '';
|
|
470
|
-
|
|
471
|
-
usersToDelete.forEach((u) => {
|
|
472
|
-
userNames += u.login || u.full_name || u.email;
|
|
473
|
-
});
|
|
474
|
-
const textInformationMessage = `${currentUserName} remove ${userNames}`;
|
|
475
|
-
const deleteUsersFromDialog: RemoveUsersFromTheDialogUseCase =
|
|
476
|
-
new RemoveUsersFromTheDialogUseCase(
|
|
477
|
-
eventMessageRepository,
|
|
478
|
-
new DialogsRepository(
|
|
479
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
480
|
-
remoteDataSourceMock,
|
|
481
|
-
),
|
|
482
|
-
dialog,
|
|
483
|
-
dialog.participantsToRemoveIds,
|
|
484
|
-
textInformationMessage,
|
|
485
|
-
);
|
|
486
|
-
|
|
487
|
-
leaveResult = await deleteUsersFromDialog.execute().catch((e) => {
|
|
488
|
-
console.log(
|
|
489
|
-
'Error delete users from RemoveUsersFromDialogUseCase: ',
|
|
490
|
-
stringifyError(e),
|
|
491
|
-
);
|
|
492
|
-
throw new Error(stringifyError(e));
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
if (leaveResult) {
|
|
497
|
-
const dialogForUpdate: GroupDialogEntity = {
|
|
498
|
-
...dialog,
|
|
499
|
-
participantIds: dialog.participantIds.filter(
|
|
500
|
-
(item) => !dialog.participantsToRemoveIds?.includes(item),
|
|
501
|
-
),
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
setNewDialog(dialogForUpdate as DialogEntity);
|
|
505
|
-
|
|
506
|
-
return Promise.resolve(leaveResult);
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
return Promise.reject(leaveResult);
|
|
510
|
-
};
|
|
511
|
-
|
|
512
|
-
const uploadFile = async (file: File): Promise<FileEntity> => {
|
|
513
|
-
const fileEntity: FileEntity = Stubs.createFileEntityWithDefaultValues();
|
|
514
|
-
|
|
515
|
-
fileEntity.data = file;
|
|
516
|
-
fileEntity.uid = '';
|
|
517
|
-
fileEntity.name = file.name;
|
|
518
|
-
fileEntity.size = file.size;
|
|
519
|
-
const uploadFileUseCase: UploadFileUseCase = new UploadFileUseCase(
|
|
520
|
-
new FileRepository(
|
|
521
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
522
|
-
remoteDataSourceMock,
|
|
523
|
-
),
|
|
524
|
-
fileEntity,
|
|
525
|
-
);
|
|
526
|
-
|
|
527
|
-
const resultEnity: FileEntity = await uploadFileUseCase
|
|
528
|
-
.execute()
|
|
529
|
-
.catch((e) => {
|
|
530
|
-
console.log('Error UploadFileUseCase: ', stringifyError(e));
|
|
531
|
-
throw new Error(stringifyError(e));
|
|
532
|
-
});
|
|
533
|
-
|
|
534
|
-
return Promise.resolve(resultEnity);
|
|
535
|
-
};
|
|
536
|
-
|
|
537
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-function
|
|
538
|
-
function informDataSources(item: DialogEntity) {
|
|
539
|
-
const updateCurrentDialogInDataSourceUseCase: UpdateCurrentDialogInDataSourceUseCase =
|
|
540
|
-
new UpdateCurrentDialogInDataSourceUseCase(
|
|
541
|
-
new DialogsRepository(
|
|
542
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
543
|
-
remoteDataSourceMock,
|
|
544
|
-
),
|
|
545
|
-
item as GroupDialogEntity,
|
|
546
|
-
);
|
|
547
|
-
|
|
548
|
-
updateCurrentDialogInDataSourceUseCase.execute().catch((e) => {
|
|
549
|
-
console.log(
|
|
550
|
-
'Error updateCurrentDialogInDataSourceUseCase: ',
|
|
551
|
-
stringifyError(e),
|
|
552
|
-
);
|
|
553
|
-
throw new Error(stringifyError(e));
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
return {
|
|
558
|
-
get entity(): DialogEntity {
|
|
559
|
-
return newDialog as DialogEntity;
|
|
560
|
-
},
|
|
561
|
-
set entity(item) {
|
|
562
|
-
setNewDialog(item);
|
|
563
|
-
informDataSources(item);
|
|
564
|
-
},
|
|
565
|
-
dialogs,
|
|
566
|
-
loading,
|
|
567
|
-
error,
|
|
568
|
-
pagination,
|
|
569
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
570
|
-
getDialogs,
|
|
571
|
-
release,
|
|
572
|
-
createDialog,
|
|
573
|
-
updateDialog,
|
|
574
|
-
deleteDialog,
|
|
575
|
-
uploadFile,
|
|
576
|
-
removeMembers,
|
|
577
|
-
setWaitLoadingStatus,
|
|
578
|
-
};
|
|
579
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
@import "../../../index";
|
|
2
|
-
|
|
3
|
-
$header-color-divider: var(--color-divider);
|
|
4
|
-
$header-container-height: 64px;
|
|
5
|
-
$header-container-gap-width: 30px; // 140px;
|
|
6
|
-
$header-container-bottom: 20px;
|
|
7
|
-
$header-container-padding-interval: 16px;
|
|
8
|
-
$header-container-title-font-family: 'Roboto';
|
|
9
|
-
$header-container-title-font-size: 20px;
|
|
10
|
-
$header-container-title-line-height: 24px;
|
|
11
|
-
$header-container-title-width: 180px;
|
|
12
|
-
$header-container-buttons-gap-width: 29px;
|
|
13
|
-
$header-container-svg-icon-width: 24px;
|
|
14
|
-
$header-container-svg-icon-height: 24px;
|
|
15
|
-
$header-container-color-icon: var(--color-icon);
|
|
16
|
-
|
|
17
|
-
.header-dialogs-container{
|
|
18
|
-
display: flex;
|
|
19
|
-
height: $header-container-height;
|
|
20
|
-
gap: 0 $header-container-gap-width;
|
|
21
|
-
padding: $header-container-padding-interval $header-container-padding-interval $header-container-padding-interval $header-container-bottom;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
&--title_wrapper{
|
|
24
|
-
font-family: $header-container-title-font-family;
|
|
25
|
-
font-style: normal;
|
|
26
|
-
font-weight: 500;
|
|
27
|
-
font-size: $header-container-title-font-size;
|
|
28
|
-
line-height: $header-container-title-line-height;
|
|
29
|
-
letter-spacing: 0.0015em;
|
|
30
|
-
|
|
31
|
-
width: 100%;
|
|
32
|
-
text-align: left;
|
|
33
|
-
|
|
34
|
-
text-overflow: ellipsis;
|
|
35
|
-
white-space: nowrap;
|
|
36
|
-
overflow: hidden;
|
|
37
|
-
}
|
|
38
|
-
&__title{
|
|
39
|
-
}
|
|
40
|
-
&__buttons{
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
gap: $header-container-buttons-gap-width;
|
|
44
|
-
background: none;
|
|
45
|
-
color: $header-container-color-icon;
|
|
46
|
-
|
|
47
|
-
svg{
|
|
48
|
-
width:$header-container-svg-icon-width;
|
|
49
|
-
height:$header-container-svg-icon-height;
|
|
50
|
-
viewBox: 0 0 $header-container-svg-icon-width $header-container-svg-icon-height;
|
|
51
|
-
}
|
|
52
|
-
svg path {
|
|
53
|
-
fill: $header-container-color-icon;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
//#Search{
|
|
57
|
-
// fill: $header-container-color-icon;
|
|
58
|
-
//}
|
|
59
|
-
//#NewChat{
|
|
60
|
-
// fill: $header-container-color-icon;
|
|
61
|
-
//}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
.header-dialogs{
|
|
65
|
-
border: 1px solid $header-color-divider;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|