quickblox-react-ui-kit 0.1.0 → 0.1.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/README.md +288 -255
- package/dist/Presentation/Views/Dialogs/Dialogs.d.ts +3 -0
- package/dist/Presentation/Views/Dialogs/useDialogsViewModel.d.ts +3 -1
- package/dist/Presentation/{components/UI → assets}/ DefaultThemes/DefaultTheme.d.ts +2 -2
- package/dist/Presentation/assets/DarkTheme.d.ts +2 -2
- package/dist/Presentation/assets/LightTheme.d.ts +2 -2
- package/dist/Presentation/assets/{Theme.d.ts → UiKitTheme.d.ts} +1 -1
- package/dist/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.d.ts +2 -2
- package/dist/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.d.ts +2 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.d.ts +2 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/MessagesView.d.ts +2 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/{useMessagesViewModelWithMockUseCase.d.ts → useMessagesViewModel.d.ts} +1 -1
- package/dist/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.d.ts +2 -2
- package/dist/Presentation/components/layouts/Desktop/{DesktopLayoutForMockModels.d.ts → DesktopLayout.d.ts} +2 -2
- package/dist/Presentation/components/layouts/Desktop/QuickBloxUIKitDesktopLayout.d.ts +7 -0
- package/dist/index-ui.d.ts +6 -5
- package/dist/index-ui.js +49 -93
- package/package.json +9 -2
- package/.prettierignore +0 -4
- package/.prettierrc +0 -8
- package/dist/MyButton/MyButton.d.ts +0 -9
- package/dist/MyInput/MyInput.d.ts +0 -10
- package/dist/Presentation/Views/Dialogs/useDialogsViewModelWithMockUseCase.d.ts +0 -4
- package/dist/Presentation/components/layouts/Desktop/Desktop.d.ts +0 -4
- package/dist/Presentation/components/layouts/TestStage/TestStageWithMockData/TestStageWithMockData.d.ts +0 -3
- 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 -0
- package/src/App.tsx +0 -230
- package/src/CommonTypes/FunctionResult.ts +0 -4
- package/src/Data/Stubs.ts +0 -1131
- 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 -51
- package/src/Data/dto/message/LocalMessagesDTO.ts +0 -21
- package/src/Data/dto/message/RemoteMessageDTO.ts +0 -51
- 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 -23
- 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 -742
- package/src/Data/mapper/DialogRemoteDTOMapper.ts +0 -776
- package/src/Data/mapper/FileLocalDTOMapper.ts +0 -253
- package/src/Data/mapper/FileRemoteDTOMapper.ts +0 -265
- package/src/Data/mapper/IMapper.ts +0 -14
- package/src/Data/mapper/MessageLocalDTOMapper.ts +0 -425
- package/src/Data/mapper/MessageRemoteDTOMapper.ts +0 -430
- package/src/Data/mapper/UserLocalDTOMapper.ts +0 -381
- package/src/Data/mapper/UserRemoteDTOMapper.ts +0 -393
- package/src/Data/repository/ConnectionRepository.ts +0 -128
- package/src/Data/repository/DialogsRepository.ts +0 -422
- package/src/Data/repository/EventMessagesRepository.ts +0 -291
- package/src/Data/repository/FileRepository.ts +0 -110
- package/src/Data/repository/MessagesRepository.ts +0 -288
- package/src/Data/repository/UsersRepository.ts +0 -324
- package/src/Data/source/exception/LocalDataSourceException.ts +0 -17
- package/src/Data/source/exception/MapperDTOException.ts +0 -19
- 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 -262
- package/src/Data/source/local/ILocalDataSource.ts +0 -45
- package/src/Data/source/local/ILocalFileDataSource.ts +0 -11
- package/src/Data/source/local/LocalDataSource.ts +0 -377
- package/src/Data/source/local/LocalFileDataSource.ts +0 -22
- package/src/Data/source/remote/IRemoteDataSource.ts +0 -112
- package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +0 -401
- package/src/Data/source/remote/Mapper/FileDTOMapper.ts +0 -276
- package/src/Data/source/remote/Mapper/IDTOMapper.ts +0 -4
- package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +0 -399
- package/src/Data/source/remote/Mapper/UserDTOMapper.ts +0 -344
- package/src/Data/source/remote/RemoteDataSource.ts +0 -1278
- 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 -15
- 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 -7
- package/src/Domain/entity/PrivateDialogEntity.ts +0 -46
- package/src/Domain/entity/PublicDialogEntity.ts +0 -72
- package/src/Domain/entity/UserEntity.ts +0 -22
- package/src/Domain/exception/domain/DomainExecption.ts +0 -5
- package/src/Domain/repository/IDialogsRepository.ts +0 -40
- 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 -73
- package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -20
- package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -45
- 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 -28
- package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +0 -22
- package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -109
- package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -103
- package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -26
- package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -141
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -69
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCaseWithMock.ts +0 -61
- package/src/Domain/use_cases/SyncDialogsUseCase.ts +0 -246
- package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -65
- package/src/Domain/use_cases/UploadFileUseCase.ts +0 -24
- package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -51
- 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 -143
- package/src/MyButton/MyButton.scss +0 -11
- package/src/MyButton/MyButton.tsx +0 -25
- package/src/MyInput/MyInput.scss +0 -9
- package/src/MyInput/MyInput.tsx +0 -36
- package/src/Presentation/.gitkeep +0 -0
- package/src/Presentation/Views/Base/BaseViewModel.ts +0 -66
- package/src/Presentation/Views/CreateDialogFlow/CreateNewDialogFlow.tsx +0 -187
- package/src/Presentation/Views/Dialogs/DialogViewModel.ts +0 -23
- package/src/Presentation/Views/Dialogs/Dialogs.scss +0 -66
- package/src/Presentation/Views/Dialogs/Dialogs.tsx +0 -372
- package/src/Presentation/Views/Dialogs/useDialogsViewModel.ts +0 -136
- package/src/Presentation/Views/Dialogs/useDialogsViewModelWithMockUseCase.ts +0 -345
- package/src/Presentation/Views/Navigation/More.svg +0 -7
- package/src/Presentation/assets/DarkTheme.ts +0 -58
- package/src/Presentation/assets/LightTheme.ts +0 -58
- package/src/Presentation/assets/Theme.ts +0 -143
- package/src/Presentation/assets/ThemeScheme.ts +0 -83
- 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/styles/_fonts.scss +0 -32
- package/src/Presentation/assets/styles/_reset-styles.scss +0 -435
- package/src/Presentation/assets/styles/_theme_colors_scheme.scss +0 -56
- package/src/Presentation/assets/styles/_theme_dark.scss +0 -33
- package/src/Presentation/assets/styles/_theme_light.scss +0 -33
- package/src/Presentation/assets/styles/_variables.scss +0 -2
- 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/ DefaultThemes/CustomTheme.ts +0 -13
- package/src/Presentation/components/UI/ DefaultThemes/DefaultTheme.ts +0 -58
- 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.scss +0 -127
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.tsx +0 -62
- package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.scss +0 -45
- package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.tsx +0 -77
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.scss +0 -429
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.tsx +0 -646
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.scss +0 -42
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.tsx +0 -26
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.scss +0 -95
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.tsx +0 -42
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.scss +0 -60
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.tsx +0 -65
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersListViewModel.ts +0 -13
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/useUsersListViewModel.ts +0 -81
- package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.scss +0 -183
- package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.tsx +0 -262
- package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.scss +0 -32
- package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.tsx +0 -59
- package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.scss +0 -67
- package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.tsx +0 -112
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.scss +0 -146
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.tsx +0 -374
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembersViewModel.ts +0 -18
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.scss +0 -113
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.tsx +0 -87
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersResultViewModel.ts +0 -12
- package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.scss +0 -37
- package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.tsx +0 -22
- package/src/Presentation/components/UI/Dialogs/InviteMembers/useInviteMembersViewModel.ts +0 -116
- package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.scss +0 -128
- package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.tsx +0 -89
- package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.scss +0 -7
- package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.tsx +0 -27
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.scss +0 -133
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.tsx +0 -137
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.scss +0 -11
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.tsx +0 -25
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.scss +0 -327
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.tsx +0 -794
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesViewModel.ts +0 -20
- package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.scss +0 -7
- package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.tsx +0 -33
- package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.scss +0 -35
- package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.tsx +0 -86
- package/src/Presentation/components/UI/Dialogs/MessagesView/useMessagesViewModelWithMockUseCase.ts +0 -452
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.scss +0 -100
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.tsx +0 -405
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialogViewModel.ts +0 -42
- package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.scss +0 -35
- package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.tsx +0 -89
- 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 -72
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss +0 -21
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.tsx +0 -41
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.scss +0 -3
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.tsx +0 -41
- 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/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 -22
- 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/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/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/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 -22
- 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 -35
- 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 -6
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.tsx +0 -24
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.scss +0 -45
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.tsx +0 -95
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.scss +0 -45
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.tsx +0 -97
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.scss +0 -46
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.tsx +0 -97
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.scss +0 -46
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.tsx +0 -85
- package/src/Presentation/components/layouts/Desktop/Desktop.tsx +0 -103
- package/src/Presentation/components/layouts/Desktop/DesktopLayout.scss +0 -31
- package/src/Presentation/components/layouts/Desktop/DesktopLayoutForMockModels.tsx +0 -31
- package/src/Presentation/components/layouts/LayoutCommonTypes.ts +0 -7
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.scss +0 -71
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.tsx +0 -116
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.scss +0 -24
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.tsx +0 -1109
- package/src/Presentation/components/layouts/TestStage/TestStageWithMockData/TestStageWithMockData.tsx +0 -209
- package/src/Presentation/components/providers/ModalContextProvider/Modal.scss +0 -71
- package/src/Presentation/components/providers/ModalContextProvider/Modal.tsx +0 -131
- package/src/Presentation/components/providers/ModalContextProvider/ModalContextProvider.tsx +0 -38
- package/src/Presentation/components/providers/ModalContextProvider/useModal.ts +0 -39
- package/src/Presentation/components/providers/ProviderProps.ts +0 -5
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +0 -255
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useEventMessagesRepository.ts +0 -10
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQBConnection.ts +0 -38
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQbDataContext.ts +0 -82
- package/src/QBconfig.ts +0 -41
- package/src/index-ui.ts +0 -60
- package/src/index.scss +0 -74
- package/src/index.tsx +0 -25
- package/src/logo.svg +0 -1
- package/src/qb-api-calls/index.ts +0 -543
- package/src/react-app-env.d.ts +0 -1
- package/src/setupTests.ts +0 -5
- package/src/utils/DateTimeFormatter.ts +0 -35
- package/src/utils/parse.ts +0 -74
- package/tsconfig.json +0 -33
- package/typedoc.json +0 -4
- package/webpack.config.js +0 -56
- /package/dist/Presentation/{components/UI → assets}/ DefaultThemes/CustomTheme.d.ts +0 -0
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import { QBDataContextType } from '../../components/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider';
|
|
3
|
-
import { Pagination } from '../../../Domain/repository/Pagination';
|
|
4
|
-
import { DialogsViewModel } from './DialogViewModel';
|
|
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
|
-
|
|
32
|
-
export default function useDialogsViewModelWithMockUseCase(
|
|
33
|
-
currentContext: QBDataContextType,
|
|
34
|
-
initPagination?: Pagination,
|
|
35
|
-
): DialogsViewModel {
|
|
36
|
-
console.log('3.1. useDialogsViewModelWithMockUseCase');
|
|
37
|
-
const startPagination: Pagination = initPagination || new Pagination();
|
|
38
|
-
const [loading, setLoading] = useState(false);
|
|
39
|
-
const [error, setError] = useState('');
|
|
40
|
-
const [pagination, setPagination] = useState<Pagination>(startPagination);
|
|
41
|
-
const [dialogs, setDialogs] = useState<PublicDialogEntity[]>([]);
|
|
42
|
-
const [newDialog, setNewDialog] = useState<DialogEntity>();
|
|
43
|
-
|
|
44
|
-
// const currentContext = useQbDataContext();
|
|
45
|
-
const remoteDataSourceMock: RemoteDataSource =
|
|
46
|
-
currentContext.storage.REMOTE_DATA_SOURCE;
|
|
47
|
-
|
|
48
|
-
const eventMessageRepository: EventMessagesRepository =
|
|
49
|
-
currentContext.storage.EVENT_MESSAGE_REPOSITORY;
|
|
50
|
-
|
|
51
|
-
const useCaseSubscribeToDialogsUpdates: SubscribeToDialogsUpdatesUseCaseWithMock =
|
|
52
|
-
new SubscribeToDialogsUpdatesUseCaseWithMock(
|
|
53
|
-
new DialogsRepository(
|
|
54
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
55
|
-
remoteDataSourceMock,
|
|
56
|
-
),
|
|
57
|
-
);
|
|
58
|
-
|
|
59
|
-
const subscribeToDialogEventsUseCase: SubscribeToDialogEventsUseCase =
|
|
60
|
-
new SubscribeToDialogEventsUseCase(
|
|
61
|
-
eventMessageRepository,
|
|
62
|
-
'DialogsViewModel',
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
const dialogUpdateHandler = (dialogInfo: DialogEventInfo) => {
|
|
66
|
-
console.log(
|
|
67
|
-
'call dialogUpdateHandler in useDialogsViewModelWithMockUseCase',
|
|
68
|
-
);
|
|
69
|
-
if (dialogInfo.eventMessageType === EventMessageType.SystemMessage) {
|
|
70
|
-
if (dialogInfo.notificationTypes === NotificationTypes.UPDATE_DIALOG) {
|
|
71
|
-
if (dialogInfo.messageInfo) {
|
|
72
|
-
const { dialogId } = dialogInfo.messageInfo;
|
|
73
|
-
|
|
74
|
-
const getDialogByIdUseCase: GetDialogByIdUseCase =
|
|
75
|
-
new GetDialogByIdUseCase(
|
|
76
|
-
new DialogsRepository(
|
|
77
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
78
|
-
currentContext.storage.REMOTE_DATA_SOURCE,
|
|
79
|
-
),
|
|
80
|
-
dialogId,
|
|
81
|
-
);
|
|
82
|
-
|
|
83
|
-
// eslint-disable-next-line promise/catch-or-return,promise/always-return
|
|
84
|
-
getDialogByIdUseCase.execute().then((updatedDialog) => {
|
|
85
|
-
setNewDialog(updatedDialog);
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
subscribeToDialogEventsUseCase
|
|
93
|
-
.execute(dialogUpdateHandler)
|
|
94
|
-
.catch((reason) => {
|
|
95
|
-
console.log(stringifyError(reason));
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
99
|
-
async function getDialogs(currentPagination: Pagination) {
|
|
100
|
-
console.log('getDialogs in useDialogsViewModelWithMockUseCase');
|
|
101
|
-
console.log(
|
|
102
|
-
'EXECUTE USE CASES GET DIALOG WITH PAGINATION: ',
|
|
103
|
-
JSON.stringify(currentPagination),
|
|
104
|
-
);
|
|
105
|
-
setLoading(true);
|
|
106
|
-
const useCaseGetAllDialogs: GetAllDialogsUseCaseWithMock =
|
|
107
|
-
new GetAllDialogsUseCaseWithMock(
|
|
108
|
-
new DialogsRepository(
|
|
109
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
110
|
-
remoteDataSourceMock,
|
|
111
|
-
),
|
|
112
|
-
currentPagination,
|
|
113
|
-
);
|
|
114
|
-
|
|
115
|
-
await useCaseGetAllDialogs
|
|
116
|
-
?.execute()
|
|
117
|
-
// eslint-disable-next-line promise/always-return
|
|
118
|
-
.then((result) => {
|
|
119
|
-
console.log('EXECUTE COMPLETED: ', JSON.stringify(currentPagination));
|
|
120
|
-
setDialogs([...(result.ResultData as PublicDialogEntity[])]);
|
|
121
|
-
setLoading(false);
|
|
122
|
-
setPagination(result.CurrentPagination);
|
|
123
|
-
})
|
|
124
|
-
.catch((e) => {
|
|
125
|
-
console.log('call catch....', JSON.stringify(e));
|
|
126
|
-
setError(`${(e as unknown as Error).message}`);
|
|
127
|
-
setLoading(false);
|
|
128
|
-
});
|
|
129
|
-
await useCaseSubscribeToDialogsUpdates?.execute((data) => {
|
|
130
|
-
try {
|
|
131
|
-
console.log(
|
|
132
|
-
'3.SUBSCRIBE EXECUTE in useDialogsViewModelWithMockUseCase:',
|
|
133
|
-
data,
|
|
134
|
-
);
|
|
135
|
-
setDialogs([...(data as PublicDialogEntity[])]);
|
|
136
|
-
setLoading(false);
|
|
137
|
-
setError('');
|
|
138
|
-
} catch (e) {
|
|
139
|
-
console.log('catch error2');
|
|
140
|
-
setError('ERROR2!!!');
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
const release = () => {
|
|
146
|
-
useCaseSubscribeToDialogsUpdates.release();
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
const createDialog = async (
|
|
150
|
-
dialogInfo: GroupDialogEntity,
|
|
151
|
-
): Promise<DialogEntity> => {
|
|
152
|
-
console.log(
|
|
153
|
-
'call createDialog in use case with params: ',
|
|
154
|
-
JSON.stringify(dialogInfo),
|
|
155
|
-
);
|
|
156
|
-
/*
|
|
157
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
158
|
-
remoteDataSourceMock,
|
|
159
|
-
currentContext.storage.CONNECTION_REPOSITORY
|
|
160
|
-
*/
|
|
161
|
-
const createDialogUseCase: CreateDialogUseCase = new CreateDialogUseCase(
|
|
162
|
-
eventMessageRepository,
|
|
163
|
-
new DialogsRepository(
|
|
164
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
165
|
-
remoteDataSourceMock,
|
|
166
|
-
),
|
|
167
|
-
dialogInfo,
|
|
168
|
-
);
|
|
169
|
-
const resultDialog: DialogEntity = await createDialogUseCase
|
|
170
|
-
.execute()
|
|
171
|
-
.catch((e) => {
|
|
172
|
-
console.log('EXCEPTION IN CREATE NEW DIALOG: ', stringifyError(e));
|
|
173
|
-
setNewDialog(undefined);
|
|
174
|
-
|
|
175
|
-
throw new Error(stringifyError(e));
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
if (resultDialog) {
|
|
179
|
-
setNewDialog(resultDialog);
|
|
180
|
-
|
|
181
|
-
return Promise.resolve(resultDialog);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
return Promise.reject(resultDialog);
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
const updateDialog = async (
|
|
188
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow,@typescript-eslint/no-unused-vars
|
|
189
|
-
dialogToUpdate: GroupDialogEntity,
|
|
190
|
-
): Promise<DialogEntity> => {
|
|
191
|
-
const updateDialogUseCase: UpdateDialogUseCase = new UpdateDialogUseCase(
|
|
192
|
-
eventMessageRepository,
|
|
193
|
-
new DialogsRepository(
|
|
194
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
195
|
-
remoteDataSourceMock,
|
|
196
|
-
),
|
|
197
|
-
dialogToUpdate,
|
|
198
|
-
);
|
|
199
|
-
|
|
200
|
-
const resultDialog: DialogEntity = await updateDialogUseCase
|
|
201
|
-
.execute()
|
|
202
|
-
.catch((e) => {
|
|
203
|
-
console.log('Error updateDialogUseCase: ', stringifyError(e));
|
|
204
|
-
throw new Error(stringifyError(e));
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
return Promise.resolve(resultDialog);
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
const deleteDialog = async (
|
|
211
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow,@typescript-eslint/no-unused-vars
|
|
212
|
-
dialogToDelete: GroupDialogEntity,
|
|
213
|
-
): Promise<boolean> => {
|
|
214
|
-
let leaveResult = false;
|
|
215
|
-
|
|
216
|
-
if (dialogToDelete.type === DialogType.private) {
|
|
217
|
-
const leaveDialogUseCase: LeaveDialogUseCase = new LeaveDialogUseCase(
|
|
218
|
-
eventMessageRepository,
|
|
219
|
-
new DialogsRepository(
|
|
220
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
221
|
-
remoteDataSourceMock,
|
|
222
|
-
),
|
|
223
|
-
dialogToDelete,
|
|
224
|
-
DialogLeaveType.delete,
|
|
225
|
-
);
|
|
226
|
-
|
|
227
|
-
leaveResult = await leaveDialogUseCase.execute().catch((e) => {
|
|
228
|
-
console.log('Error leaveDialogUseCase: ', stringifyError(e));
|
|
229
|
-
throw new Error(stringifyError(e));
|
|
230
|
-
});
|
|
231
|
-
} else {
|
|
232
|
-
const usersForDeleteFromDialog: Array<number> = new Array<number>();
|
|
233
|
-
|
|
234
|
-
const userToDeleteId: number =
|
|
235
|
-
remoteDataSourceMock?.authInformation?.userId || 0;
|
|
236
|
-
|
|
237
|
-
usersForDeleteFromDialog.push(userToDeleteId);
|
|
238
|
-
const deleteUsersFromDialog: RemoveUsersFromTheDialogUseCase =
|
|
239
|
-
new RemoveUsersFromTheDialogUseCase(
|
|
240
|
-
eventMessageRepository,
|
|
241
|
-
new DialogsRepository(
|
|
242
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
243
|
-
remoteDataSourceMock,
|
|
244
|
-
),
|
|
245
|
-
dialogToDelete,
|
|
246
|
-
usersForDeleteFromDialog,
|
|
247
|
-
);
|
|
248
|
-
|
|
249
|
-
leaveResult = await deleteUsersFromDialog.execute().catch((e) => {
|
|
250
|
-
console.log(
|
|
251
|
-
'Error delete users from RemoveUsersFromDialogUseCase: ',
|
|
252
|
-
stringifyError(e),
|
|
253
|
-
);
|
|
254
|
-
throw new Error(stringifyError(e));
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
if (leaveResult) {
|
|
259
|
-
return Promise.resolve(leaveResult);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
return Promise.reject(leaveResult);
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
const removeMembers = async (dialog: GroupDialogEntity): Promise<boolean> => {
|
|
266
|
-
let leaveResult = false;
|
|
267
|
-
|
|
268
|
-
if (
|
|
269
|
-
dialog.participantsToRemoveIds &&
|
|
270
|
-
dialog.participantsToRemoveIds.length > 0
|
|
271
|
-
) {
|
|
272
|
-
const deleteUsersFromDialog: RemoveUsersFromTheDialogUseCase =
|
|
273
|
-
new RemoveUsersFromTheDialogUseCase(
|
|
274
|
-
eventMessageRepository,
|
|
275
|
-
new DialogsRepository(
|
|
276
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
277
|
-
remoteDataSourceMock,
|
|
278
|
-
),
|
|
279
|
-
dialog,
|
|
280
|
-
dialog.participantsToRemoveIds,
|
|
281
|
-
);
|
|
282
|
-
|
|
283
|
-
leaveResult = await deleteUsersFromDialog.execute().catch((e) => {
|
|
284
|
-
console.log(
|
|
285
|
-
'Error delete users from RemoveUsersFromDialogUseCase: ',
|
|
286
|
-
stringifyError(e),
|
|
287
|
-
);
|
|
288
|
-
throw new Error(stringifyError(e));
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
if (leaveResult) {
|
|
293
|
-
return Promise.resolve(leaveResult);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
return Promise.reject(leaveResult);
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
const uploadFile = async (file: File): Promise<FileEntity> => {
|
|
300
|
-
console.log('call uploadFile(), file: ', file);
|
|
301
|
-
const fileEntity: FileEntity = Stubs.createFileEntityWithDefaultValues();
|
|
302
|
-
|
|
303
|
-
fileEntity.data = file;
|
|
304
|
-
fileEntity.uid = '';
|
|
305
|
-
fileEntity.name = file.name;
|
|
306
|
-
fileEntity.size = file.size;
|
|
307
|
-
const uploadFileUseCase: UploadFileUseCase = new UploadFileUseCase(
|
|
308
|
-
new FileRepository(
|
|
309
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
310
|
-
remoteDataSourceMock,
|
|
311
|
-
),
|
|
312
|
-
fileEntity,
|
|
313
|
-
);
|
|
314
|
-
|
|
315
|
-
const resultEnity: FileEntity = await uploadFileUseCase
|
|
316
|
-
.execute()
|
|
317
|
-
.catch((e) => {
|
|
318
|
-
console.log('Error UploadFileUseCase: ', stringifyError(e));
|
|
319
|
-
throw new Error(stringifyError(e));
|
|
320
|
-
});
|
|
321
|
-
|
|
322
|
-
return Promise.resolve(resultEnity);
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
return {
|
|
326
|
-
get entity(): DialogEntity {
|
|
327
|
-
return newDialog as DialogEntity;
|
|
328
|
-
},
|
|
329
|
-
set entity(item) {
|
|
330
|
-
setNewDialog(item);
|
|
331
|
-
},
|
|
332
|
-
dialogs,
|
|
333
|
-
loading,
|
|
334
|
-
error,
|
|
335
|
-
pagination,
|
|
336
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
337
|
-
getDialogs,
|
|
338
|
-
release,
|
|
339
|
-
createDialog,
|
|
340
|
-
updateDialog,
|
|
341
|
-
deleteDialog,
|
|
342
|
-
uploadFile,
|
|
343
|
-
removeMembers,
|
|
344
|
-
};
|
|
345
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g id="Navigation/More">
|
|
3
|
-
<g id="Vector">
|
|
4
|
-
<path d="M21.9999 14.6667C24.0166 14.6667 25.6666 13.0167 25.6666 11C25.6666 8.98334 24.0166 7.33334 21.9999 7.33334C19.9833 7.33334 18.3333 8.98334 18.3333 11C18.3333 13.0167 19.9833 14.6667 21.9999 14.6667ZM21.9999 18.3333C19.9833 18.3333 18.3333 19.9833 18.3333 22C18.3333 24.0167 19.9833 25.6667 21.9999 25.6667C24.0166 25.6667 25.6666 24.0167 25.6666 22C25.6666 19.9833 24.0166 18.3333 21.9999 18.3333ZM21.9999 29.3333C19.9833 29.3333 18.3333 30.9833 18.3333 33C18.3333 35.0167 19.9833 36.6667 21.9999 36.6667C24.0166 36.6667 25.6666 35.0167 25.6666 33C25.6666 30.9833 24.0166 29.3333 21.9999 29.3333Z" fill="#0B121B"/>
|
|
5
|
-
</g>
|
|
6
|
-
</g>
|
|
7
|
-
</svg>
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import Theme from './Theme';
|
|
2
|
-
import ThemeScheme from './ThemeScheme';
|
|
3
|
-
|
|
4
|
-
export default class DarkTheme implements Theme {
|
|
5
|
-
// eslint-disable-next-line class-methods-use-this
|
|
6
|
-
caption = (): string => ThemeScheme.secondary_100;
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line class-methods-use-this
|
|
9
|
-
chatInput = (): string => ThemeScheme.secondary_800;
|
|
10
|
-
|
|
11
|
-
// eslint-disable-next-line class-methods-use-this
|
|
12
|
-
disabledElements = (): string => ThemeScheme.secondary_300;
|
|
13
|
-
|
|
14
|
-
// eslint-disable-next-line class-methods-use-this
|
|
15
|
-
divider = (): string => ThemeScheme.secondary_400;
|
|
16
|
-
|
|
17
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18
|
-
dropdownBackground = (): string => ThemeScheme.secondary_400;
|
|
19
|
-
|
|
20
|
-
// eslint-disable-next-line class-methods-use-this
|
|
21
|
-
error = (): string => ThemeScheme.error_300;
|
|
22
|
-
|
|
23
|
-
// eslint-disable-next-line class-methods-use-this
|
|
24
|
-
fieldBorder = (): string => ThemeScheme.secondary_200;
|
|
25
|
-
|
|
26
|
-
// eslint-disable-next-line class-methods-use-this
|
|
27
|
-
hightlight = (): string => ThemeScheme.highlight;
|
|
28
|
-
|
|
29
|
-
// eslint-disable-next-line class-methods-use-this
|
|
30
|
-
incomingBackground = (): string => ThemeScheme.secondary_400;
|
|
31
|
-
|
|
32
|
-
// eslint-disable-next-line class-methods-use-this
|
|
33
|
-
inputElements = (): string => ThemeScheme.secondary_200;
|
|
34
|
-
|
|
35
|
-
// eslint-disable-next-line class-methods-use-this
|
|
36
|
-
mainBackground = (): string => ThemeScheme.secondary_500;
|
|
37
|
-
|
|
38
|
-
// eslint-disable-next-line class-methods-use-this
|
|
39
|
-
mainElements = (): string => ThemeScheme.primary_300;
|
|
40
|
-
|
|
41
|
-
// eslint-disable-next-line class-methods-use-this
|
|
42
|
-
mainText = (): string => ThemeScheme.primary_a_100;
|
|
43
|
-
|
|
44
|
-
// eslint-disable-next-line class-methods-use-this
|
|
45
|
-
outgoingBackground = (): string => ThemeScheme.primary_500;
|
|
46
|
-
|
|
47
|
-
// eslint-disable-next-line class-methods-use-this
|
|
48
|
-
secondaryBackground = (): string => ThemeScheme.secondary_800;
|
|
49
|
-
|
|
50
|
-
// eslint-disable-next-line class-methods-use-this
|
|
51
|
-
secondaryElements = (): string => ThemeScheme.primary_a_100;
|
|
52
|
-
|
|
53
|
-
// eslint-disable-next-line class-methods-use-this
|
|
54
|
-
secondaryText = (): string => ThemeScheme.secondary_200;
|
|
55
|
-
|
|
56
|
-
// eslint-disable-next-line class-methods-use-this
|
|
57
|
-
fontFamily = (): string => ThemeScheme.fontFamily;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import Theme from './Theme';
|
|
2
|
-
import ThemeScheme from './ThemeScheme';
|
|
3
|
-
|
|
4
|
-
export default class LightTheme implements Theme {
|
|
5
|
-
// eslint-disable-next-line class-methods-use-this
|
|
6
|
-
caption = (): string => ThemeScheme.secondary_200;
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line class-methods-use-this
|
|
9
|
-
chatInput = (): string => ThemeScheme.primary_a_200;
|
|
10
|
-
|
|
11
|
-
// eslint-disable-next-line class-methods-use-this
|
|
12
|
-
disabledElements = (): string => ThemeScheme.secondary_100;
|
|
13
|
-
|
|
14
|
-
// eslint-disable-next-line class-methods-use-this
|
|
15
|
-
divider = (): string => ThemeScheme.primary_50;
|
|
16
|
-
|
|
17
|
-
// eslint-disable-next-line class-methods-use-this
|
|
18
|
-
dropdownBackground = (): string => ThemeScheme.primary_a_100;
|
|
19
|
-
|
|
20
|
-
// eslint-disable-next-line class-methods-use-this
|
|
21
|
-
error = (): string => ThemeScheme.error_500;
|
|
22
|
-
|
|
23
|
-
// eslint-disable-next-line class-methods-use-this
|
|
24
|
-
fieldBorder = (): string => ThemeScheme.secondary_200;
|
|
25
|
-
|
|
26
|
-
// eslint-disable-next-line class-methods-use-this
|
|
27
|
-
hightlight = (): string => ThemeScheme.highlight;
|
|
28
|
-
|
|
29
|
-
// eslint-disable-next-line class-methods-use-this
|
|
30
|
-
incomingBackground = (): string => ThemeScheme.secondary_50;
|
|
31
|
-
|
|
32
|
-
// eslint-disable-next-line class-methods-use-this
|
|
33
|
-
inputElements = (): string => ThemeScheme.secondary_500;
|
|
34
|
-
|
|
35
|
-
// eslint-disable-next-line class-methods-use-this
|
|
36
|
-
mainBackground = (): string => ThemeScheme.primary_a_100;
|
|
37
|
-
|
|
38
|
-
// eslint-disable-next-line class-methods-use-this
|
|
39
|
-
mainElements = (): string => ThemeScheme.primary_500;
|
|
40
|
-
|
|
41
|
-
// eslint-disable-next-line class-methods-use-this
|
|
42
|
-
mainText = (): string => ThemeScheme.secondary_900;
|
|
43
|
-
|
|
44
|
-
// eslint-disable-next-line class-methods-use-this
|
|
45
|
-
outgoingBackground = (): string => ThemeScheme.primary_50;
|
|
46
|
-
|
|
47
|
-
// eslint-disable-next-line class-methods-use-this
|
|
48
|
-
secondaryBackground = (): string => ThemeScheme.primary_50;
|
|
49
|
-
|
|
50
|
-
// eslint-disable-next-line class-methods-use-this
|
|
51
|
-
secondaryElements = (): string => ThemeScheme.secondary_500;
|
|
52
|
-
|
|
53
|
-
// eslint-disable-next-line class-methods-use-this
|
|
54
|
-
secondaryText = (): string => ThemeScheme.secondary_300;
|
|
55
|
-
|
|
56
|
-
// eslint-disable-next-line class-methods-use-this
|
|
57
|
-
fontFamily = (): string => ThemeScheme.fontFamily;
|
|
58
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
// import ThemeScheme from './ThemeScheme';
|
|
2
|
-
/*
|
|
3
|
-
export default class Theme {
|
|
4
|
-
private static readonly _main_elements = ThemeScheme.primary_500;
|
|
5
|
-
|
|
6
|
-
static get mainElements(): string {
|
|
7
|
-
return this._main_elements;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
static get secondaryElements(): string {
|
|
11
|
-
return this._secondary_elements;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
static get inputElements(): string {
|
|
15
|
-
return this._input_elements;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
static get disabledElements(): string {
|
|
19
|
-
return this._disabled_elements;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
static get fieldBorder(): string {
|
|
23
|
-
return this._field_border;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
static get mainText(): string {
|
|
27
|
-
return this._main_text;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
static get secondaryText(): string {
|
|
31
|
-
return this._secondary_text;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
static get caption(): string {
|
|
35
|
-
return this._caption;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
static get mainBackground(): string {
|
|
39
|
-
return this._main_background;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
static get secondaryBackground(): string {
|
|
43
|
-
return this._secondary_background;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
static get incomingBackground(): string {
|
|
47
|
-
return this._incoming_background;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
static get outgoingBackground(): string {
|
|
51
|
-
return this._outgoing_background;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
static get dropdownBackground(): string {
|
|
55
|
-
return this._dropdown_background;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
static get chatInput(): string {
|
|
59
|
-
return this._chat_input;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
static get divider(): string {
|
|
63
|
-
return this._divider;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
static get error(): string {
|
|
67
|
-
return this._error;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
static get hightlight(): string {
|
|
71
|
-
return this._hightlight;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
private static readonly _secondary_elements = ThemeScheme.secondary_500;
|
|
75
|
-
|
|
76
|
-
private static readonly _input_elements = ThemeScheme.secondary_500;
|
|
77
|
-
|
|
78
|
-
private static readonly _disabled_elements = ThemeScheme.secondary_100;
|
|
79
|
-
|
|
80
|
-
private static readonly _field_border = ThemeScheme.secondary_200;
|
|
81
|
-
|
|
82
|
-
private static readonly _main_text = ThemeScheme.secondary_900;
|
|
83
|
-
|
|
84
|
-
private static readonly _secondary_text = ThemeScheme.secondary_300;
|
|
85
|
-
|
|
86
|
-
private static readonly _caption = ThemeScheme.secondary_200;
|
|
87
|
-
|
|
88
|
-
private static readonly _main_background = ThemeScheme.primary_a_100;
|
|
89
|
-
|
|
90
|
-
private static readonly _secondary_background = ThemeScheme.primary_50;
|
|
91
|
-
|
|
92
|
-
private static readonly _incoming_background = ThemeScheme.secondary_50;
|
|
93
|
-
|
|
94
|
-
private static readonly _outgoing_background = ThemeScheme.primary_50;
|
|
95
|
-
|
|
96
|
-
private static readonly _dropdown_background = ThemeScheme.primary_a_100;
|
|
97
|
-
|
|
98
|
-
private static readonly _chat_input = ThemeScheme.primary_a_200;
|
|
99
|
-
|
|
100
|
-
private static readonly _divider = ThemeScheme.primary_50;
|
|
101
|
-
|
|
102
|
-
private static readonly _error = ThemeScheme.error_500;
|
|
103
|
-
|
|
104
|
-
private static readonly _hightlight = ThemeScheme.highlight;
|
|
105
|
-
}
|
|
106
|
-
*/
|
|
107
|
-
export default interface Theme {
|
|
108
|
-
mainElements(): string;
|
|
109
|
-
|
|
110
|
-
secondaryElements(): string;
|
|
111
|
-
|
|
112
|
-
inputElements(): string;
|
|
113
|
-
|
|
114
|
-
disabledElements(): string;
|
|
115
|
-
|
|
116
|
-
fieldBorder(): string;
|
|
117
|
-
|
|
118
|
-
mainText(): string;
|
|
119
|
-
|
|
120
|
-
secondaryText(): string;
|
|
121
|
-
|
|
122
|
-
caption(): string;
|
|
123
|
-
|
|
124
|
-
mainBackground(): string;
|
|
125
|
-
|
|
126
|
-
secondaryBackground(): string;
|
|
127
|
-
|
|
128
|
-
incomingBackground(): string;
|
|
129
|
-
|
|
130
|
-
outgoingBackground(): string;
|
|
131
|
-
|
|
132
|
-
dropdownBackground(): string;
|
|
133
|
-
|
|
134
|
-
chatInput(): string;
|
|
135
|
-
|
|
136
|
-
divider(): string;
|
|
137
|
-
|
|
138
|
-
error(): string;
|
|
139
|
-
|
|
140
|
-
hightlight(): string;
|
|
141
|
-
|
|
142
|
-
fontFamily(): string;
|
|
143
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export default class ThemeScheme {
|
|
2
|
-
public static readonly primary_50 = '#E7EFFF';
|
|
3
|
-
|
|
4
|
-
public static readonly primary_100 = '#C4D7FE';
|
|
5
|
-
|
|
6
|
-
public static readonly primary_200 = '#9CBCFE';
|
|
7
|
-
|
|
8
|
-
public static readonly primary_300 = '#74A1FD';
|
|
9
|
-
|
|
10
|
-
public static readonly primary_400 = '#578CFC';
|
|
11
|
-
|
|
12
|
-
public static readonly primary_500 = '#3978FC';
|
|
13
|
-
|
|
14
|
-
public static readonly primary_600 = '#3370FC';
|
|
15
|
-
|
|
16
|
-
public static readonly primary_700 = '#2C65FB';
|
|
17
|
-
|
|
18
|
-
public static readonly primary_800 = '#245BFB';
|
|
19
|
-
|
|
20
|
-
public static readonly primary_900 = '#1748FA';
|
|
21
|
-
|
|
22
|
-
public static readonly primary_a_100 = '#FFFFFF';
|
|
23
|
-
|
|
24
|
-
public static readonly primary_a_200 = '#F7F9FF';
|
|
25
|
-
|
|
26
|
-
public static readonly primary_a_400 = '#C4CFFF';
|
|
27
|
-
|
|
28
|
-
public static readonly primary_a_700 = '#ABBAFF';
|
|
29
|
-
|
|
30
|
-
public static readonly secondary_50 = '#E4E6E8';
|
|
31
|
-
|
|
32
|
-
public static readonly secondary_100 = '#BCC1C5';
|
|
33
|
-
|
|
34
|
-
public static readonly secondary_200 = '#90979F';
|
|
35
|
-
|
|
36
|
-
public static readonly secondary_300 = '#636D78';
|
|
37
|
-
|
|
38
|
-
public static readonly secondary_400 = '#414E5B';
|
|
39
|
-
|
|
40
|
-
public static readonly secondary_500 = '#202F3E';
|
|
41
|
-
|
|
42
|
-
public static readonly secondary_600 = '#1C2A38';
|
|
43
|
-
|
|
44
|
-
public static readonly secondary_700 = '#182330';
|
|
45
|
-
|
|
46
|
-
public static readonly secondary_800 = '#131D28';
|
|
47
|
-
|
|
48
|
-
public static readonly secondary_900 = '#0B121B';
|
|
49
|
-
|
|
50
|
-
public static readonly secondary_a_100 = '#74A1FD';
|
|
51
|
-
|
|
52
|
-
public static readonly secondary_a_200 = '#3978FC';
|
|
53
|
-
|
|
54
|
-
public static readonly secondary_a_400 = '#245BFB';
|
|
55
|
-
|
|
56
|
-
public static readonly secondary_a_700 = '#0050DC';
|
|
57
|
-
|
|
58
|
-
public static readonly system_green_100 = '#C8F1D6';
|
|
59
|
-
|
|
60
|
-
public static readonly system_green_200 = '#A4E7BB';
|
|
61
|
-
|
|
62
|
-
public static readonly system_green_300 = '#80DDA0';
|
|
63
|
-
|
|
64
|
-
public static readonly system_green_400 = '#64D68B';
|
|
65
|
-
|
|
66
|
-
public static readonly system_green_500 = '#49CF77';
|
|
67
|
-
|
|
68
|
-
public static readonly error_100 = '#FFC4C1';
|
|
69
|
-
|
|
70
|
-
public static readonly error_200 = '#FF9D98';
|
|
71
|
-
|
|
72
|
-
public static readonly error_300 = '#FF766E';
|
|
73
|
-
|
|
74
|
-
public static readonly error_400 = '#FF584F';
|
|
75
|
-
|
|
76
|
-
public static readonly error_500 = '#FF3B30';
|
|
77
|
-
|
|
78
|
-
public static readonly information = '#FDB0FF';
|
|
79
|
-
|
|
80
|
-
public static readonly highlight = '#FFFDC1';
|
|
81
|
-
|
|
82
|
-
public static readonly fontFamily = 'Roboto';
|
|
83
|
-
}
|
|
File without changes
|
|
Binary file
|