quickblox-react-ui-kit 0.2.5 → 0.2.6-patch
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/Views/Base → CommonTypes}/BaseViewModel.d.ts +21 -6
- package/dist/CommonTypes/FunctionResult.d.ts +3 -1
- package/dist/Data/dto/message/RemoteMessageDTO.d.ts +3 -0
- package/dist/Data/mapper/MessageRemoteDTOMapper.d.ts +2 -0
- package/dist/Data/repository/DialogsRepository.d.ts +1 -1
- package/dist/Data/source/local/ILocalDataSource.d.ts +1 -1
- package/dist/Data/source/remote/Mapper/DialogDTOMapper.d.ts +1 -0
- package/dist/Data/source/remote/Mapper/MessageDTOMapper.d.ts +6 -0
- package/dist/Domain/entity/MessageEntity.d.ts +3 -0
- package/dist/Domain/repository/IDialogsRepository.d.ts +1 -1
- package/dist/Domain/use_cases/ForwardMessagesUseCase.d.ts +13 -0
- package/dist/Domain/use_cases/ReplyMessagesUseCase.d.ts +10 -0
- package/dist/Domain/use_cases/ai/AIRephraseUseCase.d.ts +1 -1
- package/dist/Domain/use_cases/ai/AIRephraseWithProxyUseCase.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs → Views}/CreateDialog/CreateDialog.d.ts +1 -1
- package/dist/Presentation/Views/CreateDialogFlow/CreateNewDialogFlow.d.ts +2 -2
- package/dist/Presentation/Views/Dialog/AIComponents/AIAssistComponent/AIAssistComponent.d.ts +8 -0
- package/dist/Presentation/Views/Dialog/AIComponents/AITranslateComponent/AITranslateComponent.d.ts +11 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/AIMessageWidget.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.d.ts +22 -0
- package/dist/Presentation/Views/Dialog/AttachmentMessage/AttachmentMessage.d.ts +7 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AudioAttachmentComponent/AudioAttachmentComponent.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog/ContextMenu}/ContextMenu.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/ContextMenu/MessageContextMenu/MessageContextMenu.d.ts +14 -0
- package/dist/Presentation/Views/Dialog/Dialog.d.ts +22 -0
- package/dist/Presentation/Views/Dialog/DialogHeader/DialogHeader.d.ts +12 -0
- package/dist/Presentation/Views/Dialog/DialogViewModel.d.ts +16 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/DropDownMenu/DropDownMenu.d.ts +2 -3
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogsWithSearch.d.ts +12 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/ItemForListComponent/ItemDialogList.d.ts +14 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/SearchComponent/SearchComponent.d.ts +8 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.d.ts +13 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessagePreview/ForwardMessagePreview.d.ts +9 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.d.ts +10 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/ImageAttachmentComponent/ImageAttachmentComponent.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/IncomingForwardedRepliedMessage/IncomingForwardedRepliedMessage.d.ts +25 -0
- package/dist/Presentation/Views/Dialog/IncomingMessage/AttachmentContentComponent/AttachmentContentComponent.d.ts +8 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView/InComingMessage/InComingMessage.d.ts → Views/Dialog/IncomingMessage/IncomingMessage.d.ts} +10 -5
- package/dist/Presentation/Views/Dialog/IncomingMessage/MessageContentComponent/MessageContentComponent.d.ts +10 -0
- package/dist/Presentation/Views/Dialog/Message/Message.d.ts +22 -0
- package/dist/Presentation/Views/Dialog/MessageInput/MessageInput.d.ts +21 -0
- package/dist/Presentation/Views/Dialog/OutgoingForwardedRepliedMessage/OutgoingForwardedRepliedMessage.d.ts +17 -0
- package/dist/Presentation/Views/Dialog/OutgoingMessage/OutgoingMessage.d.ts +14 -0
- package/dist/Presentation/Views/Dialog/RenderDialogHeaderNavigator/RenderDialogHeaderNavigator.d.ts +9 -0
- package/dist/Presentation/Views/Dialog/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.d.ts +8 -0
- package/dist/Presentation/Views/Dialog/ReplyMessagePreview/ReplyMessagePreview.d.ts +11 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/VideoAttachmentComponent/VideoAttachmentComponent.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/VoiceMessage/VoiceMessage.d.ts +8 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/VoiceRecordingProgress/VoiceRecordingProgress.d.ts +3 -3
- package/dist/Presentation/Views/Dialog/useDialogViewModel.d.ts +4 -0
- package/dist/Presentation/Views/DialogInfo/DialogInfo.d.ts +16 -0
- package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/DialogMemberButton/DialogMembersButton.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/UsersList/SingleUser/SingleUser.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/UsersList/UsersList.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/UsersList/UsersListViewModel.d.ts +3 -3
- package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/UsersList/useUsersListViewModel.d.ts +1 -1
- package/dist/Presentation/Views/{Dialogs/Dialogs.d.ts → DialogList/DialogList.d.ts} +8 -8
- package/dist/Presentation/Views/{Dialogs/DialogViewModel.d.ts → DialogList/DialogListViewModel.d.ts} +2 -2
- package/dist/Presentation/Views/DialogList/useDialogListViewModel.d.ts +4 -0
- package/dist/Presentation/{components/UI/Dialogs/HeaderDialogs/HeaderDialogs.d.ts → Views/DialogListHeader/DialogListHeader.d.ts} +6 -6
- package/dist/Presentation/{components/UI/Dialogs → Views}/EditDialog/EditDialog.d.ts +2 -2
- package/dist/Presentation/{components/UI/Dialogs → Views}/EditDialog/UserAvatar/UserAvatar.d.ts +2 -2
- package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/InviteMembers.d.ts +2 -2
- package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/InviteMembersViewModel.d.ts +3 -3
- package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/InviteUsersResultViewModel.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs → Views}/MembersList/MembersList.d.ts +2 -2
- package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewDialog.d.ts +2 -2
- package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewDialogViewModel.d.ts +2 -2
- package/dist/Presentation/{components/UI/Dialogs → Views}/YesNoQuestion/YesNoQuestion.d.ts +1 -1
- package/dist/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.d.ts +1 -1
- package/dist/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.d.ts +1 -1
- package/dist/Presentation/components/UI/Buttons/MainButton/MainButton.d.ts +1 -1
- package/dist/Presentation/components/UI/Elements/SwitchButton/SwitchButton.d.ts +1 -1
- package/dist/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.d.ts +1 -1
- package/dist/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.d.ts +1 -1
- package/dist/Presentation/components/containers/ColumnContainer/ColumnContainer.d.ts +1 -1
- package/dist/Presentation/{components/layouts → layouts}/Desktop/DesktopLayout.d.ts +1 -1
- package/dist/Presentation/{components/layouts → layouts}/Desktop/QuickBloxUIKitDesktopLayout.d.ts +3 -2
- package/dist/Presentation/{components/layouts → layouts}/TestStage/LoginView/Login.d.ts +1 -1
- package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/QuickBloxUIKitProvider.d.ts +6 -6
- package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/useEventMessagesRepository.d.ts +1 -1
- package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/useQBConnection.d.ts +1 -1
- package/dist/QBconfig.d.ts +2 -0
- package/dist/index-ui.d.ts +22 -22
- package/dist/index-ui.js +1281 -665
- package/dist/utils/utils.d.ts +1 -1
- package/global.d.ts +23 -14
- package/package.json +26 -2
- package/.prettierignore +0 -4
- package/.prettierrc +0 -10
- package/dist/Presentation/Views/Dialogs/useDialogsViewModel.d.ts +0 -4
- package/dist/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.d.ts +0 -16
- package/dist/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.d.ts +0 -14
- package/dist/Presentation/components/UI/Dialogs/MessagesView/MessagesView.d.ts +0 -29
- package/dist/Presentation/components/UI/Dialogs/MessagesView/MessagesViewModel.d.ts +0 -14
- package/dist/Presentation/components/UI/Dialogs/MessagesView/OutGoingMessage/OutGoingMessage.d.ts +0 -9
- package/dist/Presentation/components/UI/Dialogs/MessagesView/useMessagesViewModel.d.ts +0 -4
- 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 -246
- package/src/CommonTypes/FunctionResult.ts +0 -63
- package/src/Data/DefaultConfigurations.ts +0 -333
- 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 -777
- 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 -426
- package/src/Data/mapper/MessageRemoteDTOMapper.ts +0 -432
- package/src/Data/mapper/UserLocalDTOMapper.ts +0 -381
- package/src/Data/mapper/UserRemoteDTOMapper.ts +0 -393
- package/src/Data/repository/ConnectionRepository.ts +0 -144
- package/src/Data/repository/DialogsRepository.ts +0 -426
- package/src/Data/repository/EventMessagesRepository.ts +0 -325
- package/src/Data/repository/FileRepository.ts +0 -110
- package/src/Data/repository/MessagesRepository.ts +0 -294
- package/src/Data/repository/UsersRepository.ts +0 -324
- 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 -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 -418
- 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 -452
- package/src/Data/source/remote/Mapper/UserDTOMapper.ts +0 -344
- package/src/Data/source/remote/RemoteDataSource.ts +0 -1414
- 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 -9
- package/src/Domain/entity/PrivateDialogEntity.ts +0 -46
- package/src/Domain/entity/PublicDialogEntity.ts +0 -80
- package/src/Domain/entity/UserEntity.ts +0 -22
- 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 -80
- package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -20
- package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -46
- 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 -116
- package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -126
- package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -27
- package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -162
- 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 -72
- package/src/Domain/use_cases/UploadFileUseCase.ts +0 -24
- package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -51
- package/src/Domain/use_cases/ai/AIAnswerAssistUseCase.ts +0 -69
- package/src/Domain/use_cases/ai/AIAnswerAssistWithProxyUseCase.ts +0 -71
- package/src/Domain/use_cases/ai/AIRephraseUseCase.ts +0 -89
- package/src/Domain/use_cases/ai/AIRephraseWithProxyUseCase.ts +0 -75
- package/src/Domain/use_cases/ai/AITranslateUseCase.ts +0 -76
- package/src/Domain/use_cases/ai/AITranslateWithProxyUseCase.ts +0 -79
- 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 -148
- package/src/Presentation/.gitkeep +0 -0
- package/src/Presentation/Views/Base/BaseViewModel.ts +0 -91
- package/src/Presentation/Views/CreateDialogFlow/CreateNewDialogFlow.tsx +0 -188
- package/src/Presentation/Views/Dialogs/DialogViewModel.ts +0 -25
- package/src/Presentation/Views/Dialogs/Dialogs.scss +0 -79
- package/src/Presentation/Views/Dialogs/Dialogs.tsx +0 -400
- package/src/Presentation/Views/Dialogs/useDialogsViewModel.ts +0 -443
- package/src/Presentation/Views/Navigation/More.svg +0 -7
- package/src/Presentation/assets/DarkTheme.ts +0 -58
- package/src/Presentation/assets/DefaultThemes/CustomTheme.ts +0 -58
- package/src/Presentation/assets/DefaultThemes/DefaultTheme.ts +0 -58
- package/src/Presentation/assets/LightTheme.ts +0 -58
- package/src/Presentation/assets/ThemeScheme.ts +0 -83
- package/src/Presentation/assets/UiKitTheme.ts +0 -143
- 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/assets/styles/_fonts.scss +0 -32
- package/src/Presentation/assets/styles/_theme_colors_scheme.scss +0 -56
- package/src/Presentation/assets/styles/_theme_colors_scheme_green.scss +0 -57
- package/src/Presentation/assets/styles/_theme_colors_scheme_pink.scss +0 -72
- 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 -21
- 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.scss +0 -136
- 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 -574
- 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 -199
- package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.tsx +0 -277
- 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 -149
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.tsx +0 -328
- 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 -79
- 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 -131
- package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.tsx +0 -93
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/AIMessageWidget.ts +0 -40
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/AIWidgetActions/AIWidgetActions.scss +0 -55
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/AIWidgetActions/AIWidgetActions.tsx +0 -122
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/ErrorMessageIcon.tsx +0 -98
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/SliderMenu.tsx +0 -172
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/Tone.ts +0 -35
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAIAssistAnswerWidget.tsx +0 -83
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAIAssistAnswerWidgetWithProxy.tsx +0 -83
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAIRephraseMessageWidget.tsx +0 -104
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAIRephraseMessageWidgetWithProxy.tsx +0 -102
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAITranslateWidget.tsx +0 -89
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAITranslateWidgetWithProxy.tsx +0 -89
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/useDefaultVoiceInputWidget.tsx +0 -87
- 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/ContextMenu.tsx +0 -95
- package/src/Presentation/components/UI/Dialogs/MessagesView/DefaultAttachmentComponent/DefaultAttachmentComponent.scss +0 -76
- package/src/Presentation/components/UI/Dialogs/MessagesView/DefaultAttachmentComponent/DefaultAttachmentComponent.tsx +0 -40
- package/src/Presentation/components/UI/Dialogs/MessagesView/DropDownMenu/DropDownMenu.scss +0 -84
- package/src/Presentation/components/UI/Dialogs/MessagesView/DropDownMenu/DropDownMenu.tsx +0 -105
- package/src/Presentation/components/UI/Dialogs/MessagesView/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.scss +0 -50
- package/src/Presentation/components/UI/Dialogs/MessagesView/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.tsx +0 -43
- package/src/Presentation/components/UI/Dialogs/MessagesView/ErrorToast/ErrorToast.scss +0 -26
- package/src/Presentation/components/UI/Dialogs/MessagesView/ErrorToast/ErrorToast.tsx +0 -25
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.scss +0 -133
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.tsx +0 -144
- package/src/Presentation/components/UI/Dialogs/MessagesView/HighLightLink/HighLightLink.scss +0 -92
- package/src/Presentation/components/UI/Dialogs/MessagesView/HighLightLink/HighLightLink.tsx +0 -128
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.scss +0 -11
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.tsx +0 -27
- package/src/Presentation/components/UI/Dialogs/MessagesView/InComingMessage/AvatarContentIncomingUser/AvatarContentIncomingUser.scss +0 -39
- package/src/Presentation/components/UI/Dialogs/MessagesView/InComingMessage/AvatarContentIncomingUser/AvatarContentIncomingUser.tsx +0 -32
- package/src/Presentation/components/UI/Dialogs/MessagesView/InComingMessage/InComingMessage.scss +0 -392
- package/src/Presentation/components/UI/Dialogs/MessagesView/InComingMessage/InComingMessage.tsx +0 -480
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.scss +0 -399
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.tsx +0 -1704
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesViewModel.ts +0 -20
- package/src/Presentation/components/UI/Dialogs/MessagesView/OutGoingMessage/OutGoingMessage.scss +0 -7
- package/src/Presentation/components/UI/Dialogs/MessagesView/OutGoingMessage/OutGoingMessage.tsx +0 -99
- package/src/Presentation/components/UI/Dialogs/MessagesView/SystemDateBanner/SystemDateBanner.scss +0 -23
- package/src/Presentation/components/UI/Dialogs/MessagesView/SystemDateBanner/SystemDateBanner.tsx +0 -17
- package/src/Presentation/components/UI/Dialogs/MessagesView/SystemMessageBanner/SystemMessageBanner.scss +0 -21
- package/src/Presentation/components/UI/Dialogs/MessagesView/SystemMessageBanner/SystemMessageBanner.tsx +0 -17
- package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.scss +0 -11
- 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 -89
- package/src/Presentation/components/UI/Dialogs/MessagesView/useMessagesViewModel.ts +0 -516
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewAudioFile/PreviewAudioFile.scss +0 -62
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewAudioFile/PreviewAudioFile.tsx +0 -25
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDefaultFile/PreviewDefaultFile.scss +0 -61
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDefaultFile/PreviewDefaultFile.tsx +0 -32
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.scss +0 -126
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.tsx +0 -492
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialogViewModel.ts +0 -42
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewImageFile/PreviewImageFile.scss +0 -40
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewImageFile/PreviewImageFile.tsx +0 -26
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewVideoFile/PreviewVideoFile.scss +0 -62
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewVideoFile/PreviewVideoFile.tsx +0 -25
- 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/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 -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/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 -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 -45
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.tsx +0 -85
- package/src/Presentation/components/layouts/Desktop/DesktopLayout.scss +0 -31
- package/src/Presentation/components/layouts/Desktop/DesktopLayout.tsx +0 -52
- package/src/Presentation/components/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +0 -382
- package/src/Presentation/components/layouts/LayoutCommonTypes.ts +0 -7
- package/src/Presentation/components/layouts/TestStage/CompanyLogo/CompanyLogo.tsx +0 -27
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.scss +0 -71
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.tsx +0 -95
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.scss +0 -24
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.tsx +0 -1109
- 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 -344
- 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/useQbInitializedDataContext.ts +0 -83
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQbUIKitDataContext.ts +0 -11
- package/src/QBconfig.ts +0 -221
- package/src/index-ui.ts +0 -84
- package/src/index.scss +0 -17
- 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 -581
- 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/src/utils/utils.ts +0 -102
- package/tsconfig.json +0 -33
- package/typedoc.json +0 -4
- package/webpack.config.js +0 -56
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/AIWidgetActions/AIWidgetActions.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/ErrorMessageIcon.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/SliderMenu.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/Tone.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAIAssistAnswerWidget.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAIAssistAnswerWidgetWithProxy.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAIRephraseMessageWidget.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAIRephraseMessageWidgetWithProxy.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAITranslateWidget.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAITranslateWidgetWithProxy.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/useDefaultVoiceInputWidget.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/DefaultAttachmentComponent/DefaultAttachmentComponent.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/ErrorToast/ErrorToast.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/HighLightLink/HighLightLink.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView/InComingMessage → Views/Dialog/IncomingMessage}/AvatarContentIncomingUser/AvatarContentIncomingUser.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/SystemDateBanner/SystemDateBanner.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/SystemMessageBanner/SystemMessageBanner.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/NotFoundContent/NotFoundContent.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/useInviteMembersViewModel.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewAudioFile/PreviewAudioFile.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewDefaultFile/PreviewDefaultFile.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewImageFile/PreviewImageFile.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewVideoFile/PreviewVideoFile.d.ts +0 -0
- /package/dist/Presentation/{components/layouts → layouts}/LayoutCommonTypes.d.ts +0 -0
- /package/dist/Presentation/{components/layouts → layouts}/TestStage/CompanyLogo/CompanyLogo.d.ts +0 -0
- /package/dist/Presentation/{components/layouts → layouts}/TestStage/TestStageMarkup.d.ts +0 -0
- /package/dist/Presentation/{components/providers → providers}/ModalContextProvider/Modal.d.ts +0 -0
- /package/dist/Presentation/{components/providers → providers}/ModalContextProvider/ModalContextProvider.d.ts +0 -0
- /package/dist/Presentation/{components/providers → providers}/ModalContextProvider/useModal.d.ts +0 -0
- /package/dist/Presentation/{components/providers → providers}/ProviderProps.d.ts +0 -0
- /package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/useQbInitializedDataContext.d.ts +0 -0
- /package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/useQbUIKitDataContext.d.ts +0 -0
- /package/dist/Presentation/{assets → themes}/DarkTheme.d.ts +0 -0
- /package/dist/Presentation/{assets → themes}/DefaultThemes/CustomTheme.d.ts +0 -0
- /package/dist/Presentation/{assets → themes}/DefaultThemes/DefaultTheme.d.ts +0 -0
- /package/dist/Presentation/{assets → themes}/LightTheme.d.ts +0 -0
- /package/dist/Presentation/{assets → themes}/ThemeScheme.d.ts +0 -0
- /package/dist/Presentation/{assets → themes}/UiKitTheme.d.ts +0 -0
|
@@ -1,581 +0,0 @@
|
|
|
1
|
-
import { stringifyError } from '../utils/parse';
|
|
2
|
-
|
|
3
|
-
export type QBInitParams = {
|
|
4
|
-
appIdOrToken: string | number;
|
|
5
|
-
authKeyOrAppId: string | number;
|
|
6
|
-
authSecret?: string;
|
|
7
|
-
accountKey: string;
|
|
8
|
-
config?: QBConfig;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export function QBInit(params: QBInitParams) {
|
|
12
|
-
QB.init(
|
|
13
|
-
params.appIdOrToken,
|
|
14
|
-
params.authKeyOrAppId,
|
|
15
|
-
params.authSecret,
|
|
16
|
-
params.accountKey,
|
|
17
|
-
params.config,
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function QBCreateSession(params?: QBLoginParams) {
|
|
22
|
-
return new Promise<QBSession>((resolve, reject) => {
|
|
23
|
-
QB.createSession(params, (sessionError, session) => {
|
|
24
|
-
if (sessionError) {
|
|
25
|
-
reject(stringifyError(sessionError));
|
|
26
|
-
} else {
|
|
27
|
-
resolve(session);
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function QBGetSession() {
|
|
34
|
-
return new Promise<QBSession>((resolve, reject) => {
|
|
35
|
-
QB.getSession((getSessionError, response) => {
|
|
36
|
-
if (getSessionError || !response?.session) {
|
|
37
|
-
reject(
|
|
38
|
-
getSessionError ? stringifyError(getSessionError) : 'No session',
|
|
39
|
-
);
|
|
40
|
-
} else {
|
|
41
|
-
resolve(response.session);
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function loginToQuickBlox(params: QBLoginParams) {
|
|
48
|
-
return new Promise<QBUser>((resolve, reject) => {
|
|
49
|
-
QB.login(params, (loginError, user) => {
|
|
50
|
-
if (loginError) {
|
|
51
|
-
reject(stringifyError(loginError));
|
|
52
|
-
} else {
|
|
53
|
-
resolve(user);
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function QBLogin(params: QBLoginParams) {
|
|
60
|
-
let session: QBSession;
|
|
61
|
-
|
|
62
|
-
return QBCreateSession()
|
|
63
|
-
.then((_session) => {
|
|
64
|
-
session = _session;
|
|
65
|
-
|
|
66
|
-
return loginToQuickBlox(params);
|
|
67
|
-
})
|
|
68
|
-
.then((user) => ({ user, session }));
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function QBLogout() {
|
|
72
|
-
return new Promise((resolve) => {
|
|
73
|
-
QB.destroySession(resolve);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function QBChatConnect(params: ChatConnectParams) {
|
|
78
|
-
return new Promise((resolve, reject) => {
|
|
79
|
-
QB.chat.connect(params, (error, success) => {
|
|
80
|
-
if (error) {
|
|
81
|
-
reject(stringifyError(error));
|
|
82
|
-
} else {
|
|
83
|
-
resolve(success);
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export function QBChatDisconnect() {
|
|
90
|
-
QB.chat.disconnect();
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function registrationAccount(params: QBCreateUserParams) {
|
|
94
|
-
return new Promise<QBUser>((resolve, reject) => {
|
|
95
|
-
QB.users.create(params, (error, createdUser) => {
|
|
96
|
-
if (error) {
|
|
97
|
-
reject(stringifyError(error));
|
|
98
|
-
} else {
|
|
99
|
-
resolve(createdUser);
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export function QBUserCreate(params: QBCreateUserParams) {
|
|
106
|
-
let session: QBSession;
|
|
107
|
-
|
|
108
|
-
return QBCreateSession()
|
|
109
|
-
.then((_session) => {
|
|
110
|
-
session = _session;
|
|
111
|
-
|
|
112
|
-
return registrationAccount(params);
|
|
113
|
-
})
|
|
114
|
-
.then((user) => ({ user, session }));
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export function QBUserUpdate(userId: QBUser['id'], user: Partial<QBUser>) {
|
|
118
|
-
return new Promise<QBUser>((resolve, reject) => {
|
|
119
|
-
QB.users.update(userId, user, (error, updatedUser) => {
|
|
120
|
-
if (error) {
|
|
121
|
-
reject(stringifyError(error));
|
|
122
|
-
} else {
|
|
123
|
-
resolve(updatedUser);
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export function QBUserGet(params: GetUserParams | number) {
|
|
130
|
-
if (typeof params === 'number') {
|
|
131
|
-
return new Promise<QBUser | undefined>((resolve, reject) => {
|
|
132
|
-
QB.users.get(params, (error, result) => {
|
|
133
|
-
if (error) {
|
|
134
|
-
reject(error);
|
|
135
|
-
} else {
|
|
136
|
-
resolve(result);
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
return new Promise<ListUserResponse>((resolve, reject) => {
|
|
143
|
-
QB.users.get(params, (error, result: ListUserResponse) => {
|
|
144
|
-
if (error) {
|
|
145
|
-
reject(error);
|
|
146
|
-
} else {
|
|
147
|
-
resolve(result);
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
//
|
|
153
|
-
export function QBUsersGet(params: GetUserParams) {
|
|
154
|
-
return new Promise<ListUserResponse>((resolve, reject) => {
|
|
155
|
-
QB.users.get(params, (error, result: ListUserResponse) => {
|
|
156
|
-
if (error) {
|
|
157
|
-
reject(error);
|
|
158
|
-
} else {
|
|
159
|
-
resolve(result);
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
export function QBUsersGetById(params: number) {
|
|
165
|
-
return new Promise<QBUser | undefined>((resolve, reject) => {
|
|
166
|
-
QB.users.get(params, (error, result) => {
|
|
167
|
-
if (error) {
|
|
168
|
-
reject(error);
|
|
169
|
-
} else {
|
|
170
|
-
resolve(result);
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
//
|
|
177
|
-
export function QBUserList(params: ListUserParams) {
|
|
178
|
-
return new Promise<ListUserResponse | undefined>((resolve, reject) => {
|
|
179
|
-
QB.users.listUsers(params, (error, response) => {
|
|
180
|
-
if (error) {
|
|
181
|
-
reject(stringifyError(error));
|
|
182
|
-
} else {
|
|
183
|
-
resolve(response);
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export function QBDataGet<T extends QBCustomObject>(
|
|
190
|
-
className: string,
|
|
191
|
-
filters: Dictionary<unknown>,
|
|
192
|
-
) {
|
|
193
|
-
return new Promise<{
|
|
194
|
-
class_name: string;
|
|
195
|
-
items: T[];
|
|
196
|
-
limit: number;
|
|
197
|
-
skip: number;
|
|
198
|
-
}>((resolve, reject) => {
|
|
199
|
-
QB.data.list<T>(className, filters, (error, result) => {
|
|
200
|
-
if (error) {
|
|
201
|
-
reject(stringifyError(error));
|
|
202
|
-
} else {
|
|
203
|
-
resolve(result);
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export function QBDataCreate<T extends QBCustomObject>(
|
|
210
|
-
className: string,
|
|
211
|
-
data: Dictionary<unknown>,
|
|
212
|
-
) {
|
|
213
|
-
return new Promise<T>((resolve, reject) => {
|
|
214
|
-
QB.data.create<T>(className, data, (error, customObject) => {
|
|
215
|
-
if (error) {
|
|
216
|
-
reject(stringifyError(error));
|
|
217
|
-
} else {
|
|
218
|
-
resolve(customObject);
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export function QBDataDelete<
|
|
225
|
-
T extends QBCustomObject['_id'] | Array<QBCustomObject['_id']>,
|
|
226
|
-
>(className: string, ids: T) {
|
|
227
|
-
return new Promise<QBDataDeletedResponse>((resolve, reject) => {
|
|
228
|
-
QB.data.delete<T>(className, ids, (error, customObject) => {
|
|
229
|
-
if (error) {
|
|
230
|
-
reject(stringifyError(error));
|
|
231
|
-
} else {
|
|
232
|
-
resolve(customObject);
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export function QBDataUpdate<T extends QBCustomObject>(
|
|
239
|
-
className: string,
|
|
240
|
-
_id: T['_id'],
|
|
241
|
-
data: Dictionary<unknown>,
|
|
242
|
-
) {
|
|
243
|
-
return new Promise<T>((resolve, reject) => {
|
|
244
|
-
QB.data.update<{ _id: string } & Dictionary<unknown>, T>(
|
|
245
|
-
className,
|
|
246
|
-
{ _id, ...data },
|
|
247
|
-
(error, item) => {
|
|
248
|
-
if (error) {
|
|
249
|
-
reject(stringifyError(error));
|
|
250
|
-
} else {
|
|
251
|
-
resolve(item);
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
);
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
259
|
-
export function QBGetDialogs(filters: Dictionary<any>) {
|
|
260
|
-
return new Promise<QBGetDialogResult | undefined>((resolve, reject) => {
|
|
261
|
-
QB.chat.dialog.list(filters, (error, result) => {
|
|
262
|
-
if (error) {
|
|
263
|
-
reject(stringifyError(error));
|
|
264
|
-
} else {
|
|
265
|
-
resolve(result);
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
export function QBGetDialogById(id: string) {
|
|
272
|
-
return new Promise<QBGetDialogResult | undefined>((resolve, reject) => {
|
|
273
|
-
QB.chat.dialog.list({ _id: id }, (error, result) => {
|
|
274
|
-
if (error) {
|
|
275
|
-
reject(stringifyError(error));
|
|
276
|
-
} else {
|
|
277
|
-
resolve(result);
|
|
278
|
-
}
|
|
279
|
-
});
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export function QBCreatePrivateDialog(
|
|
284
|
-
userId: QBUser['id'],
|
|
285
|
-
dialogName?: string,
|
|
286
|
-
data?: Dictionary<unknown>,
|
|
287
|
-
) {
|
|
288
|
-
console.log(
|
|
289
|
-
`call QBCreatePrivateDialog with userid: ${userId} dialog name: ${
|
|
290
|
-
dialogName || '-'
|
|
291
|
-
}`,
|
|
292
|
-
);
|
|
293
|
-
|
|
294
|
-
return new Promise<QBChatDialog>((resolve, reject) => {
|
|
295
|
-
QB.chat.dialog.create(
|
|
296
|
-
{ name: dialogName || '-', occupants_ids: [userId], type: 3, data },
|
|
297
|
-
(error, chat) => {
|
|
298
|
-
if (error) {
|
|
299
|
-
reject(stringifyError(error));
|
|
300
|
-
} else {
|
|
301
|
-
resolve(chat);
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
);
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
export function QBCreateGroupDialog(
|
|
308
|
-
userIds: Array<QBUser['id']>,
|
|
309
|
-
dialogName?: string,
|
|
310
|
-
data?: Dictionary<unknown>,
|
|
311
|
-
) {
|
|
312
|
-
console.log(
|
|
313
|
-
`call QBCreateGroupDialog with ids: ${JSON.stringify(userIds)} name: ${
|
|
314
|
-
dialogName || ''
|
|
315
|
-
}`,
|
|
316
|
-
);
|
|
317
|
-
|
|
318
|
-
let params = {};
|
|
319
|
-
|
|
320
|
-
if (data && data?.photo) {
|
|
321
|
-
params = {
|
|
322
|
-
name: dialogName || '-',
|
|
323
|
-
occupants_ids: [userIds],
|
|
324
|
-
type: 2,
|
|
325
|
-
photo: data?.photo,
|
|
326
|
-
};
|
|
327
|
-
} else {
|
|
328
|
-
params = {
|
|
329
|
-
name: dialogName || '-',
|
|
330
|
-
occupants_ids: [userIds],
|
|
331
|
-
type: 2,
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
return new Promise<QBChatDialog>((resolve, reject) => {
|
|
336
|
-
QB.chat.dialog.create(
|
|
337
|
-
// {
|
|
338
|
-
// name: dialogName || '-',
|
|
339
|
-
// occupants_ids: [userIds],
|
|
340
|
-
// type: 2,
|
|
341
|
-
// photo: data?.photo,
|
|
342
|
-
// },
|
|
343
|
-
params,
|
|
344
|
-
(error, chat) => {
|
|
345
|
-
if (error) {
|
|
346
|
-
reject(stringifyError(error));
|
|
347
|
-
} else {
|
|
348
|
-
resolve(chat);
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
);
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
export function QBUpdateDialog(
|
|
356
|
-
dialogId: QBChatDialog['_id'],
|
|
357
|
-
data: Dictionary<unknown>,
|
|
358
|
-
) {
|
|
359
|
-
return new Promise<QBChatDialog>((resolve, reject) => {
|
|
360
|
-
QB.chat.dialog.update(dialogId, data, (error, chat) => {
|
|
361
|
-
if (error) {
|
|
362
|
-
reject(stringifyError(error));
|
|
363
|
-
} else {
|
|
364
|
-
resolve(chat);
|
|
365
|
-
}
|
|
366
|
-
});
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
export function QBJoinGroupDialog(dialogId: QBChatDialog['_id']) {
|
|
371
|
-
return new Promise((resolve, reject) => {
|
|
372
|
-
const dialogJid = QB.chat.helpers.getRoomJidFromDialogId(dialogId);
|
|
373
|
-
|
|
374
|
-
QB.chat.muc.join(dialogJid, (error, res) => {
|
|
375
|
-
if (error) {
|
|
376
|
-
reject(stringifyError(error));
|
|
377
|
-
} else {
|
|
378
|
-
resolve(res);
|
|
379
|
-
}
|
|
380
|
-
});
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
export function QBDeleteDialog(dialogIds: Array<QBChatDialog['_id']>) {
|
|
385
|
-
return new Promise<void>((resolve, reject) => {
|
|
386
|
-
QB.chat.dialog.delete(dialogIds, (error) => {
|
|
387
|
-
if (error) {
|
|
388
|
-
reject(stringifyError(error));
|
|
389
|
-
} else {
|
|
390
|
-
resolve();
|
|
391
|
-
}
|
|
392
|
-
});
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
export function QBLeaveDialog(dialogId: QBChatDialog['_id']) {
|
|
397
|
-
return new Promise((resolve, reject) => {
|
|
398
|
-
const dialogJid = QB.chat.helpers.getRoomJidFromDialogId(dialogId);
|
|
399
|
-
|
|
400
|
-
QB.chat.muc.leave(dialogJid, (error, res) => {
|
|
401
|
-
if (error) {
|
|
402
|
-
reject(stringifyError(error));
|
|
403
|
-
} else {
|
|
404
|
-
resolve(res);
|
|
405
|
-
}
|
|
406
|
-
});
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
export function QBGetInfoFile(fileId: QBContentObject['id']) {
|
|
411
|
-
return new Promise((resolve, reject) => {
|
|
412
|
-
QB.content.getInfo(fileId, (error, response) => {
|
|
413
|
-
if (error) {
|
|
414
|
-
reject(stringifyError(error));
|
|
415
|
-
} else {
|
|
416
|
-
resolve(response);
|
|
417
|
-
}
|
|
418
|
-
});
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
export function QBDeleteContent(contentId: QBContentObject['id']) {
|
|
423
|
-
return new Promise((resolve, reject) => {
|
|
424
|
-
QB.content.delete(contentId, (error, response) => {
|
|
425
|
-
if (error) {
|
|
426
|
-
reject(stringifyError(error));
|
|
427
|
-
} else {
|
|
428
|
-
resolve(response);
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
export function QBCreateAndUploadContent(paramContent: QBContentParam) {
|
|
435
|
-
return new Promise((resolve, reject) => {
|
|
436
|
-
QB.content.createAndUpload(paramContent, (error, response) => {
|
|
437
|
-
if (error) {
|
|
438
|
-
reject(stringifyError(error));
|
|
439
|
-
} else {
|
|
440
|
-
resolve(response);
|
|
441
|
-
}
|
|
442
|
-
});
|
|
443
|
-
});
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
// export function QBChatGetMessages(
|
|
447
|
-
// dialogId: QBChatDialog['_id'],
|
|
448
|
-
// skip = 0,
|
|
449
|
-
// limit = 100,
|
|
450
|
-
// ) {
|
|
451
|
-
// return new Promise<GetMessagesResult & { dialogId: QBChatDialog['_id'] }>(
|
|
452
|
-
// (resolve, reject) => {
|
|
453
|
-
// QB.chat.message.list(
|
|
454
|
-
// {
|
|
455
|
-
// chat_dialog_id: dialogId,
|
|
456
|
-
// sort_desc: 'date_sent',
|
|
457
|
-
// limit,
|
|
458
|
-
// skip,
|
|
459
|
-
// mark_as_read: 0,
|
|
460
|
-
// },
|
|
461
|
-
// (error, messages) => {
|
|
462
|
-
// if (error) {
|
|
463
|
-
// reject(stringifyError(error));
|
|
464
|
-
// } else {
|
|
465
|
-
// resolve({ ...messages, dialogId });
|
|
466
|
-
// }
|
|
467
|
-
// },
|
|
468
|
-
// );
|
|
469
|
-
// },
|
|
470
|
-
// );
|
|
471
|
-
// }
|
|
472
|
-
// //
|
|
473
|
-
|
|
474
|
-
export function qbChatGetMessagesExtended(
|
|
475
|
-
dialogId: QBChatDialog['_id'],
|
|
476
|
-
params: Partial<{
|
|
477
|
-
skip: number;
|
|
478
|
-
limit: number;
|
|
479
|
-
sort_desc: 'date_sent' | 'created_at' | 'updated_at';
|
|
480
|
-
sort_asc: 'date_sent' | 'created_at' | 'updated_at';
|
|
481
|
-
_id: string;
|
|
482
|
-
date_sent: Partial<{
|
|
483
|
-
lt: number;
|
|
484
|
-
lte: number;
|
|
485
|
-
gt: number;
|
|
486
|
-
gte: number;
|
|
487
|
-
}>;
|
|
488
|
-
}> = {},
|
|
489
|
-
): Promise<GetMessagesResult> {
|
|
490
|
-
return new Promise<GetMessagesResult>((resolve, reject) => {
|
|
491
|
-
QB.chat.message.list(
|
|
492
|
-
{
|
|
493
|
-
chat_dialog_id: dialogId,
|
|
494
|
-
sort_desc: 'date_sent',
|
|
495
|
-
...params,
|
|
496
|
-
},
|
|
497
|
-
(error, messages) => {
|
|
498
|
-
if (error) {
|
|
499
|
-
reject(error);
|
|
500
|
-
} else {
|
|
501
|
-
resolve(messages);
|
|
502
|
-
}
|
|
503
|
-
},
|
|
504
|
-
);
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
//
|
|
508
|
-
export function QBSendIsTypingStatus(
|
|
509
|
-
dialog: QBChatDialog,
|
|
510
|
-
senderId: QBUser['id'],
|
|
511
|
-
) {
|
|
512
|
-
const isPrivate: QBChatDialogType = 3;
|
|
513
|
-
const jidOrUserid =
|
|
514
|
-
dialog.type === isPrivate
|
|
515
|
-
? QB.chat.helpers.getRecipientId(dialog.occupants_ids, senderId)
|
|
516
|
-
: QB.chat.helpers.getRoomJidFromDialogId(dialog._id);
|
|
517
|
-
|
|
518
|
-
// const dialogJid = QB.chat.helpers.getRoomJidFromDialogId(dialogId);
|
|
519
|
-
|
|
520
|
-
try {
|
|
521
|
-
QB.chat.sendIsTypingStatus(jidOrUserid);
|
|
522
|
-
} catch (e) {
|
|
523
|
-
console.log(JSON.stringify(e));
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
export function QBSendIsStopTypingStatus(
|
|
527
|
-
dialog: QBChatDialog,
|
|
528
|
-
senderId: QBUser['id'],
|
|
529
|
-
) {
|
|
530
|
-
const isPrivate: QBChatDialogType = 3;
|
|
531
|
-
const jidOrUserid =
|
|
532
|
-
dialog.type === isPrivate
|
|
533
|
-
? QB.chat.helpers.getRecipientId(dialog.occupants_ids, senderId)
|
|
534
|
-
: QB.chat.helpers.getRoomJidFromDialogId(dialog._id);
|
|
535
|
-
|
|
536
|
-
// const dialogJid = QB.chat.helpers.getRoomJidFromDialogId(dialogId);
|
|
537
|
-
|
|
538
|
-
try {
|
|
539
|
-
QB.chat.sendIsStopTypingStatus(jidOrUserid);
|
|
540
|
-
} catch (e) {
|
|
541
|
-
console.log(JSON.stringify(e));
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
//
|
|
545
|
-
|
|
546
|
-
export function QBChatSendMessage(
|
|
547
|
-
to: string | number, // artan 22.06.23
|
|
548
|
-
message: QBChatNewMessage,
|
|
549
|
-
) {
|
|
550
|
-
return new Promise<QBChatMessage['_id']>((resolve) => {
|
|
551
|
-
resolve(QB.chat.send(to, message));
|
|
552
|
-
});
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
export function QBChatSendSystemMessage(
|
|
556
|
-
to: QBUser['id'] | string,
|
|
557
|
-
message: { extension: QBSystemMessage['extension'] },
|
|
558
|
-
) {
|
|
559
|
-
return new Promise<QBSystemMessage['id']>((resolve) => {
|
|
560
|
-
resolve(QB.chat.sendSystemMessage(to, message));
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
export function QBChatMarkMessageRead(params: QBMessageStatusParams) {
|
|
565
|
-
QB.chat.sendReadStatus(params);
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
export function QBWebRTCSessionGetUserMedia(
|
|
569
|
-
session: QBWebRTCSession,
|
|
570
|
-
params: QBGetUserMediaParams,
|
|
571
|
-
) {
|
|
572
|
-
return new Promise<MediaStream | undefined>((resolve, reject) => {
|
|
573
|
-
session.getUserMedia({ ...params }, (error, stream) => {
|
|
574
|
-
if (error) {
|
|
575
|
-
reject(error);
|
|
576
|
-
} else {
|
|
577
|
-
resolve(stream);
|
|
578
|
-
}
|
|
579
|
-
});
|
|
580
|
-
});
|
|
581
|
-
}
|
package/src/react-app-env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="react-scripts" />
|
package/src/setupTests.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export const getDateShortFormatEU = (dateTimeToFormat: number) => {
|
|
2
|
-
const dateStr = new Date(dateTimeToFormat).toLocaleDateString('en-us', {
|
|
3
|
-
// dateStyle: 'medium',
|
|
4
|
-
day: '2-digit',
|
|
5
|
-
month: 'short',
|
|
6
|
-
weekday: 'short',
|
|
7
|
-
});
|
|
8
|
-
const result = dateStr.split(',');
|
|
9
|
-
const dayMonthPart = `${result[1]}, ${result[0]}`;
|
|
10
|
-
|
|
11
|
-
return dayMonthPart;
|
|
12
|
-
};
|
|
13
|
-
export const getTimeShort24hFormat = (dateTimeToFormat: number) => {
|
|
14
|
-
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString
|
|
15
|
-
return new Date(dateTimeToFormat).toLocaleTimeString('en-us', {
|
|
16
|
-
timeStyle: 'short',
|
|
17
|
-
hour12: false,
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const formatShortTime3 = (dateTimeToFormat: number) => {
|
|
22
|
-
return new Date(dateTimeToFormat).toLocaleTimeString('en-us', {
|
|
23
|
-
// weekday: 'long',
|
|
24
|
-
// year: 'numeric',
|
|
25
|
-
// month: 'long',
|
|
26
|
-
// day: 'numeric',
|
|
27
|
-
timeStyle: 'full',
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
export const formatShortTime4 = (dateTimeToFormat: number) => {
|
|
31
|
-
return new Date(dateTimeToFormat).toLocaleDateString();
|
|
32
|
-
};
|
|
33
|
-
/*
|
|
34
|
-
|
|
35
|
-
*/
|
package/src/utils/parse.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
export const jsonParse = <P>(text: string): P | string => {
|
|
2
|
-
try {
|
|
3
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
return JSON.parse<P>(text);
|
|
6
|
-
} catch (error) {
|
|
7
|
-
return text;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const parseErrorObject = (data: Dictionary<string | string[]>) =>
|
|
12
|
-
Object.keys(data)
|
|
13
|
-
.map((key) => {
|
|
14
|
-
const field = data[key];
|
|
15
|
-
|
|
16
|
-
return Array.isArray(field)
|
|
17
|
-
? `${key} ${field.join('')}`
|
|
18
|
-
: `${key} ${field}`;
|
|
19
|
-
})
|
|
20
|
-
.join(' ')
|
|
21
|
-
.replace(/errors\s?/, '');
|
|
22
|
-
|
|
23
|
-
export const parseErrorMessage = (message: string) => {
|
|
24
|
-
const data = jsonParse<string | string[] | Dictionary<string | string[]>>(
|
|
25
|
-
message,
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
if (typeof data === 'string') {
|
|
29
|
-
return data;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
if (Array.isArray(data)) {
|
|
33
|
-
return data.join('');
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (typeof data === 'object') {
|
|
37
|
-
return parseErrorObject(data);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return data;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export function isQBError(error: unknown): error is QBError {
|
|
44
|
-
return typeof error === 'object' && error !== null && 'message' in error;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function stringifyError(error: unknown): string {
|
|
48
|
-
if (typeof error === 'string') return error;
|
|
49
|
-
|
|
50
|
-
if (error && typeof error === 'object') {
|
|
51
|
-
const dataError:
|
|
52
|
-
| { detail?: string; message?: string }
|
|
53
|
-
| Dictionary<string | string[]> = error;
|
|
54
|
-
|
|
55
|
-
if (dataError.detail) {
|
|
56
|
-
return parseErrorMessage(dataError.detail);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (dataError?.message) {
|
|
60
|
-
return parseErrorMessage(dataError.message);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return parseErrorObject(dataError);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return JSON.stringify(error);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export const isSessionDoesNotExistError = (error: string) => {
|
|
70
|
-
return (
|
|
71
|
-
error.toUpperCase().replaceAll(' ', '_').replace(/[.:]/g, '') ===
|
|
72
|
-
'BASE_REQUIRED_SESSION_DOES_NOT_EXIST'
|
|
73
|
-
);
|
|
74
|
-
};
|