quickblox-react-ui-kit 0.3.0-beta.2 → 0.3.0-beta.4

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.
Files changed (210) hide show
  1. package/dist/Data/Stubs.d.ts +1 -1
  2. package/dist/Data/dto/file/RemoteFileDTO.d.ts +1 -1
  3. package/dist/Data/dto/message/RemoteMessageDTO.d.ts +1 -1
  4. package/dist/Data/dto/user/LocalUserDTO.d.ts +1 -1
  5. package/dist/Data/dto/user/RemoteUserDTO.d.ts +2 -2
  6. package/dist/Data/repository/DialogsRepository.d.ts +1 -0
  7. package/dist/Data/source/remote/IRemoteDataSource.d.ts +1 -0
  8. package/dist/Data/source/remote/RemoteDataSource.d.ts +2 -0
  9. package/dist/Domain/entity/DialogEventInfo.d.ts +4 -0
  10. package/dist/Domain/entity/FileEntity.d.ts +1 -1
  11. package/dist/Domain/entity/UserEntity.d.ts +1 -1
  12. package/dist/Domain/use_cases/GetAllMessagesForDialog.d.ts +3 -3
  13. package/dist/Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase.d.ts +10 -0
  14. package/dist/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.d.ts +2 -1
  15. package/dist/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.d.ts +2 -1
  16. package/dist/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.d.ts +1 -0
  17. package/dist/Presentation/Views/Dialog/DialogViewModel.d.ts +2 -0
  18. package/dist/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.d.ts +1 -0
  19. package/dist/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.d.ts +2 -2
  20. package/dist/Presentation/Views/Dialog/MessageContextMenu/MessageContextMenu.d.ts +2 -1
  21. package/dist/Presentation/Views/Dialog/MessageItem/MessageItem.d.ts +3 -2
  22. package/dist/Presentation/Views/DialogInfo/DialogInfo.d.ts +1 -0
  23. package/dist/Presentation/Views/DialogList/DialogList.d.ts +1 -0
  24. package/dist/Presentation/Views/EditDialog/EditDialog.d.ts +2 -1
  25. package/dist/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.d.ts +1 -0
  26. package/dist/Presentation/Views/PreviewDialog/PreviewDialog.d.ts +1 -0
  27. package/dist/Presentation/providers/QuickBloxUIKitProvider/useQBConnection.d.ts +1 -0
  28. package/dist/Presentation/ui-components/DialogWindow/DialogWindow.d.ts +3 -2
  29. package/dist/Presentation/ui-components/Dropdown/DropdownOption.d.ts +2 -1
  30. package/dist/Presentation/ui-components/MessageInput/AttachmentUploader/AttachmentUploader.d.ts +1 -0
  31. package/dist/Presentation/ui-components/MessageInput/MessageInput.d.ts +1 -0
  32. package/dist/Presentation/ui-components/MessageInput/MessageInput.stories.d.ts +4 -4
  33. package/dist/index-ui.js +1054 -771
  34. package/dist/index-ui.js.map +1 -1
  35. package/dist/qb-api-calls/index.d.ts +9 -7
  36. package/global.d.ts +2513 -546
  37. package/package.json +1 -1
  38. package/src/App.scss +3 -0
  39. package/src/App.tsx +1 -1
  40. package/src/Data/Creator.ts +1 -2
  41. package/src/Data/DefaultConfigurations.ts +4 -4
  42. package/src/Data/Stubs.ts +4 -5
  43. package/src/Data/dto/file/RemoteFileDTO.ts +2 -2
  44. package/src/Data/dto/message/RemoteMessageDTO.ts +1 -1
  45. package/src/Data/dto/user/LocalUserDTO.ts +2 -2
  46. package/src/Data/dto/user/RemoteUserDTO.ts +4 -4
  47. package/src/Data/mapper/FileRemoteDTOMapper.ts +8 -6
  48. package/src/Data/mapper/MessageRemoteDTOMapper.ts +1 -1
  49. package/src/Data/mapper/UserLocalDTOMapper.ts +2 -2
  50. package/src/Data/mapper/UserRemoteDTOMapper.ts +2 -2
  51. package/src/Data/repository/DialogsRepository.ts +16 -0
  52. package/src/Data/repository/MessagesRepository.ts +2 -2
  53. package/src/Data/repository/UsersRepository.ts +1 -1
  54. package/src/Data/source/remote/IRemoteDataSource.ts +2 -0
  55. package/src/Data/source/remote/Mapper/FileDTOMapper.ts +23 -23
  56. package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +2 -2
  57. package/src/Data/source/remote/Mapper/UserDTOMapper.ts +0 -2
  58. package/src/Data/source/remote/RemoteDataSource.ts +136 -15
  59. package/src/Domain/entity/DialogEventInfo.ts +4 -0
  60. package/src/Domain/entity/FileEntity.ts +1 -1
  61. package/src/Domain/entity/UserEntity.ts +1 -11
  62. package/src/Domain/use_cases/GetAllMessagesForDialog.ts +3 -3
  63. package/src/Domain/use_cases/GetDialogByIdUseCase.ts +5 -1
  64. package/src/Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase.ts +31 -0
  65. package/src/Domain/use_cases/UpdateDialogUseCase.ts +6 -1
  66. package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +1 -1
  67. package/src/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.scss +5 -0
  68. package/src/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.tsx +9 -2
  69. package/src/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.scss +10 -0
  70. package/src/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.tsx +16 -7
  71. package/src/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.scss +7 -2
  72. package/src/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.tsx +12 -3
  73. package/src/Presentation/Views/Dialog/DialogViewModel.ts +2 -0
  74. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.scss +1 -1
  75. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogsWithSearch.scss +10 -0
  76. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogsWithSearch.tsx +12 -13
  77. package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.tsx +9 -5
  78. package/src/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.scss +31 -1
  79. package/src/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.tsx +7 -7
  80. package/src/Presentation/Views/Dialog/MessageContextMenu/MessageContextMenu.tsx +17 -6
  81. package/src/Presentation/Views/Dialog/MessageItem/MessageItem.tsx +23 -9
  82. package/src/Presentation/Views/Dialog/useDialogViewModel.ts +65 -32
  83. package/src/Presentation/Views/DialogInfo/DialogInfo.scss +14 -12
  84. package/src/Presentation/Views/DialogInfo/DialogInfo.tsx +36 -18
  85. package/src/Presentation/Views/DialogInfo/MembersList/MembersList.scss +8 -99
  86. package/src/Presentation/Views/DialogInfo/MembersList/MembersList.tsx +9 -29
  87. package/src/Presentation/Views/DialogInfo/UsersList/useUsersListViewModel.ts +1 -0
  88. package/src/Presentation/Views/DialogList/DialogList.scss +5 -0
  89. package/src/Presentation/Views/DialogList/DialogList.tsx +12 -2
  90. package/src/Presentation/Views/DialogList/useDialogListViewModel.ts +108 -11
  91. package/src/Presentation/Views/EditDialog/EditDialog.scss +12 -40
  92. package/src/Presentation/Views/EditDialog/EditDialog.tsx +18 -15
  93. package/src/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.tsx +14 -0
  94. package/src/Presentation/Views/InviteMembers/InviteMembers.tsx +14 -15
  95. package/src/Presentation/Views/InviteMembers/useInviteMembersViewModel.ts +1 -11
  96. package/src/Presentation/Views/PreviewDialog/PreviewDialog.tsx +4 -0
  97. package/src/Presentation/layouts/Desktop/DesktopLayout.scss +8 -8
  98. package/src/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +218 -141
  99. package/src/Presentation/providers/QuickBloxUIKitProvider/useQBConnection.ts +16 -0
  100. package/src/Presentation/ui-components/Avatar/avatar.stories.tsx +1 -1
  101. package/src/Presentation/ui-components/Badge/Badge.stories.ts +1 -1
  102. package/src/Presentation/ui-components/Button/Button.stories.ts +1 -1
  103. package/src/Presentation/ui-components/DialogBanner/DialogBanner.stories.ts +2 -1
  104. package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.stories.tsx +29 -1
  105. package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.tsx +4 -1
  106. package/src/Presentation/ui-components/DialogWindow/DialogWindow.scss +11 -0
  107. package/src/Presentation/ui-components/DialogWindow/DialogWindow.stories.tsx +2 -1
  108. package/src/Presentation/ui-components/DialogWindow/DialogWindow.tsx +4 -1
  109. package/src/Presentation/ui-components/Dropdown/Dropdown.scss +4 -0
  110. package/src/Presentation/ui-components/Dropdown/Dropdown.stories.tsx +2 -1
  111. package/src/Presentation/ui-components/Dropdown/Dropdown.tsx +5 -2
  112. package/src/Presentation/ui-components/Dropdown/DropdownOption.tsx +9 -1
  113. package/src/Presentation/ui-components/Header/Header.stories.tsx +2 -1
  114. package/src/Presentation/ui-components/Loader/Loader.stories.ts +1 -1
  115. package/src/Presentation/ui-components/Message/Bubble/AttachmentBubble/AttachmentBubble.tsx +6 -1
  116. package/src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.scss +13 -0
  117. package/src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.tsx +16 -2
  118. package/src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.scss +9 -0
  119. package/src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.tsx +15 -17
  120. package/src/Presentation/ui-components/Message/Message.stories.tsx +80 -1
  121. package/src/Presentation/ui-components/MessageInput/AttachmentUploader/AttachmentUploader.tsx +3 -0
  122. package/src/Presentation/ui-components/MessageInput/MessageInput.scss +18 -4
  123. package/src/Presentation/ui-components/MessageInput/MessageInput.stories.tsx +16 -8
  124. package/src/Presentation/ui-components/MessageInput/MessageInput.tsx +8 -2
  125. package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.stories.ts +3 -1
  126. package/src/Presentation/ui-components/Placeholder/Placeholder.stories.tsx +2 -6
  127. package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.stories.ts +12 -1
  128. package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx +2 -2
  129. package/src/Presentation/ui-components/SettingsItem/SettingsItem.stories.tsx +7 -1
  130. package/src/Presentation/ui-components/TextField/TextField.stories.ts +7 -2
  131. package/src/Presentation/ui-components/Toast/Toast.stories.tsx +1 -1
  132. package/src/Presentation/ui-components/UserListItem/UserListItem.stories.tsx +3 -1
  133. package/src/QBconfig.ts +4 -4
  134. package/src/index.scss +3 -2
  135. package/src/qb-api-calls/index.ts +59 -49
  136. package/storybook-static/433.dffc897e.iframe.bundle.js +1 -0
  137. package/storybook-static/603.4cf0423b.iframe.bundle.js +1 -0
  138. package/storybook-static/{758.d99b0166.iframe.bundle.js → 758.53b4954a.iframe.bundle.js} +3 -3
  139. package/storybook-static/{758.d99b0166.iframe.bundle.js.map → 758.53b4954a.iframe.bundle.js.map} +1 -1
  140. package/storybook-static/{472.3c9e81e6.iframe.bundle.js → 768.e44c05aa.iframe.bundle.js} +3 -3
  141. package/storybook-static/{472.3c9e81e6.iframe.bundle.js.map → 768.e44c05aa.iframe.bundle.js.map} +1 -1
  142. package/storybook-static/{926.f14bb932.iframe.bundle.js → 926.f5308089.iframe.bundle.js} +2 -2
  143. package/storybook-static/{926.f14bb932.iframe.bundle.js.map → 926.f5308089.iframe.bundle.js.map} +1 -1
  144. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.cf806856.iframe.bundle.js +1 -0
  145. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.9449e470.iframe.bundle.js +14 -0
  146. package/storybook-static/{Presentation-ui-components-Badge-Badge-stories.fea53429.iframe.bundle.js.map → Presentation-ui-components-Badge-Badge-stories.9449e470.iframe.bundle.js.map} +1 -1
  147. package/storybook-static/Presentation-ui-components-Button-Button-stories.4fac7996.iframe.bundle.js +1 -0
  148. package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.fa91d2c7.iframe.bundle.js +10 -0
  149. package/storybook-static/{Presentation-ui-components-DialogBanner-DialogBanner-stories.6b2a3f72.iframe.bundle.js.map → Presentation-ui-components-DialogBanner-DialogBanner-stories.fa91d2c7.iframe.bundle.js.map} +1 -1
  150. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.6665bbfb.iframe.bundle.js +1 -0
  151. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.cf340397.iframe.bundle.js +1 -0
  152. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.b32a1e17.iframe.bundle.js +1 -0
  153. package/storybook-static/Presentation-ui-components-Header-Header-stories.073c4507.iframe.bundle.js +1 -0
  154. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.9bf3fb63.iframe.bundle.js +1 -0
  155. package/storybook-static/{Presentation-ui-components-Message-Message-stories.63bec01b.iframe.bundle.js → Presentation-ui-components-Message-Message-stories.343dfae0.iframe.bundle.js} +1 -1
  156. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.c2ead6a5.iframe.bundle.js +1 -0
  157. package/storybook-static/{Presentation-ui-components-MessageSeparator-MessageSeparator-stories.82483823.iframe.bundle.js → Presentation-ui-components-MessageSeparator-MessageSeparator-stories.a7d43c0b.iframe.bundle.js} +3 -3
  158. package/storybook-static/{Presentation-ui-components-MessageSeparator-MessageSeparator-stories.82483823.iframe.bundle.js.map → Presentation-ui-components-MessageSeparator-MessageSeparator-stories.a7d43c0b.iframe.bundle.js.map} +1 -1
  159. package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.871f508c.iframe.bundle.js +1 -0
  160. package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.527e000e.iframe.bundle.js +1 -0
  161. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.2ff75703.iframe.bundle.js +1 -0
  162. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.4a2eef3e.iframe.bundle.js +1 -0
  163. package/storybook-static/{Presentation-ui-components-Toast-Toast-stories.e26b2e07.iframe.bundle.js → Presentation-ui-components-Toast-Toast-stories.55e63162.iframe.bundle.js} +1 -1
  164. package/storybook-static/{Presentation-ui-components-UserListItem-UserListItem-stories.e88f4206.iframe.bundle.js → Presentation-ui-components-UserListItem-UserListItem-stories.04d3eefe.iframe.bundle.js} +1 -1
  165. package/storybook-static/docs-Introduction-mdx.ac401482.iframe.bundle.js +10 -0
  166. package/storybook-static/docs-Introduction-mdx.ac401482.iframe.bundle.js.map +1 -0
  167. package/storybook-static/docs-Styling-mdx.1d6c1212.iframe.bundle.js +10 -0
  168. package/storybook-static/docs-Styling-mdx.1d6c1212.iframe.bundle.js.map +1 -0
  169. package/storybook-static/iframe.html +4 -4
  170. package/storybook-static/index.json +1 -1
  171. package/storybook-static/main.597d432b.iframe.bundle.js +1 -0
  172. package/storybook-static/project.json +1 -1
  173. package/storybook-static/runtime~main.12da9712.iframe.bundle.js +1 -0
  174. package/storybook-static/static/css/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.e720ff21.chunk.css → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.bee082ca.chunk.css} +2 -2
  175. package/storybook-static/static/css/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.e720ff21.chunk.css.map → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.bee082ca.chunk.css.map} +1 -1
  176. package/storybook-static/static/css/{Presentation-ui-components-DialogWindow-DialogWindow-stories.6fb3af8d.chunk.css → Presentation-ui-components-DialogWindow-DialogWindow-stories.4f813450.chunk.css} +2 -2
  177. package/storybook-static/static/css/Presentation-ui-components-DialogWindow-DialogWindow-stories.4f813450.chunk.css.map +1 -0
  178. package/storybook-static/static/css/{Presentation-ui-components-Dropdown-Dropdown-stories.66965d64.chunk.css → Presentation-ui-components-Dropdown-Dropdown-stories.e37f549d.chunk.css} +2 -2
  179. package/storybook-static/static/css/Presentation-ui-components-Dropdown-Dropdown-stories.e37f549d.chunk.css.map +1 -0
  180. package/storybook-static/static/css/{Presentation-ui-components-Message-Message-stories.a518b61a.chunk.css → Presentation-ui-components-Message-Message-stories.0e129b10.chunk.css} +3 -3
  181. package/storybook-static/static/css/{Presentation-ui-components-Message-Message-stories.a518b61a.chunk.css.map → Presentation-ui-components-Message-Message-stories.0e129b10.chunk.css.map} +1 -1
  182. package/storybook-static/static/css/{Presentation-ui-components-MessageInput-MessageInput-stories.0e99d80b.chunk.css → Presentation-ui-components-MessageInput-MessageInput-stories.7eb916fc.chunk.css} +2 -2
  183. package/storybook-static/static/css/Presentation-ui-components-MessageInput-MessageInput-stories.7eb916fc.chunk.css.map +1 -0
  184. package/storybook-static/static/css/{Presentation-ui-components-Placeholder-Placeholder-stories.1ebf88ab.chunk.css → Presentation-ui-components-Placeholder-Placeholder-stories.cb7fb80a.chunk.css} +1 -2
  185. package/storybook-static/static/css/Presentation-ui-components-Placeholder-Placeholder-stories.cb7fb80a.chunk.css.map +1 -0
  186. package/storybook-static/static/css/{main.4e852eef.css → main.a921485c.css} +2 -2
  187. package/storybook-static/static/css/{main.4e852eef.css.map → main.a921485c.css.map} +1 -1
  188. package/storybook-static/stories.json +1 -1
  189. package/storybook-static/312.0aa0e670.iframe.bundle.js +0 -1
  190. package/storybook-static/341.bea6d0bd.iframe.bundle.js +0 -1
  191. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.2fb23ae6.iframe.bundle.js +0 -1
  192. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.fea53429.iframe.bundle.js +0 -14
  193. package/storybook-static/Presentation-ui-components-Button-Button-stories.f6c6437b.iframe.bundle.js +0 -1
  194. package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.6b2a3f72.iframe.bundle.js +0 -10
  195. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.f1cb9d40.iframe.bundle.js +0 -1
  196. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.0ad17c54.iframe.bundle.js +0 -1
  197. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.3b620239.iframe.bundle.js +0 -1
  198. package/storybook-static/Presentation-ui-components-Header-Header-stories.45503161.iframe.bundle.js +0 -1
  199. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.8b53bb33.iframe.bundle.js +0 -1
  200. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.728a66ad.iframe.bundle.js +0 -1
  201. package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.0898ead6.iframe.bundle.js +0 -1
  202. package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.973cdb64.iframe.bundle.js +0 -1
  203. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.0af0b8a8.iframe.bundle.js +0 -1
  204. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.5987d2bb.iframe.bundle.js +0 -1
  205. package/storybook-static/main.0332574c.iframe.bundle.js +0 -1
  206. package/storybook-static/runtime~main.16726a14.iframe.bundle.js +0 -1
  207. package/storybook-static/static/css/Presentation-ui-components-DialogWindow-DialogWindow-stories.6fb3af8d.chunk.css.map +0 -1
  208. package/storybook-static/static/css/Presentation-ui-components-Dropdown-Dropdown-stories.66965d64.chunk.css.map +0 -1
  209. package/storybook-static/static/css/Presentation-ui-components-MessageInput-MessageInput-stories.0e99d80b.chunk.css.map +0 -1
  210. package/storybook-static/static/css/Presentation-ui-components-Placeholder-Placeholder-stories.1ebf88ab.chunk.css.map +0 -1
@@ -23,7 +23,7 @@ export declare class Stubs {
23
23
  static createPrivateDialogQBWithEmptyValues(): QBChatDialog;
24
24
  static createGroupDialogQBWithEmptyValues(): QBChatDialog;
25
25
  static createDialogEntityWithParams(dialogType: DialogType, id: string, name: string, dateSentLastMessage: string, textLastMessage: string, userIdLastMessage: number, ownerId: string, unreadMessageCount: number, updatedAt: string, participantId: number, photo?: string, participantIds?: number[]): DialogEntity;
26
- static createUserEntityWithParams(id: number, full_name: string, email: string, login: string, created_at: string, updated_at: string, last_request_at: string, custom_data?: string | null, user_tags?: string | null, blob_id?: string, photo?: string): UserEntity;
26
+ static createUserEntityWithParams(id: number, full_name: string, email: string, login: string, created_at: string, updated_at: string, last_request_at: number, custom_data?: string | null, user_tags?: string | null, blob_id?: string, photo?: string): UserEntity;
27
27
  static createDialogsForTest(): Array<DialogEntity>;
28
28
  static createUsersForTest(): Array<UserEntity>;
29
29
  static createMessagesForTest(): Array<MessageEntity>;
@@ -5,6 +5,6 @@ export declare class RemoteFileDTO {
5
5
  name: string;
6
6
  size: number;
7
7
  type: string;
8
- data: string | File;
8
+ data: File | undefined;
9
9
  constructor();
10
10
  }
@@ -3,7 +3,7 @@ import { DialogType } from '../../../Domain/entity/DialogTypes';
3
3
  export declare class RemoteMessageDTO {
4
4
  id: string;
5
5
  dialogId: string;
6
- message: string;
6
+ message: string | null;
7
7
  created_at: string;
8
8
  date_sent: number;
9
9
  delivered_ids: Array<number>;
@@ -6,7 +6,7 @@ export declare class LocalUserDTO {
6
6
  login: string;
7
7
  created_at: string;
8
8
  updated_at: string;
9
- last_request_at: string;
9
+ last_request_at: number;
10
10
  custom_data: string | null;
11
11
  user_tags: string | null;
12
12
  blob_id: number | string | null;
@@ -6,9 +6,9 @@ export declare class RemoteUserDTO {
6
6
  login: string;
7
7
  created_at: string;
8
8
  updated_at: string;
9
- last_request_at: string;
9
+ last_request_at: number;
10
10
  custom_data: string | null;
11
11
  user_tags: string | null;
12
- blob_id: number | string | null;
12
+ blob_id: number | null;
13
13
  constructor();
14
14
  }
@@ -18,6 +18,7 @@ export default class DialogsRepository implements IDialogsRepository {
18
18
  saveDialogToLocal(entity: DialogEntity): Promise<boolean>;
19
19
  createDialogInRemote(entity: DialogEntity): Promise<DialogEntity>;
20
20
  updateDialogInLocal(entity: DialogEntity): Promise<DialogEntity>;
21
+ updateCurrentDialogInLocalDataSource(entity: DialogEntity): Promise<DialogEntity>;
21
22
  updateDialogInRemote(entity: DialogEntity): Promise<DialogEntity>;
22
23
  getDialogFromLocal(dialogId: string): Promise<DialogEntity>;
23
24
  getDialogFromRemote(dialogId: string): Promise<DialogEntity>;
@@ -33,4 +33,5 @@ export interface IRemoteDataSource extends IRemoteMessaging<RemoteMessageDTO> {
33
33
  getFile(dto: RemoteFileDTO): Promise<RemoteFileDTO>;
34
34
  deleteFile(dto: RemoteFileDTO): Promise<void>;
35
35
  subscribeToChatConnectionEvents(fileId: string): Promise<void>;
36
+ updateCurrentDialog(dto: RemoteDialogDTO): void;
36
37
  }
@@ -41,8 +41,10 @@ export declare class RemoteDataSource implements IRemoteDataSource {
41
41
  private _authInformation;
42
42
  get authInformation(): AuthorizationData | undefined;
43
43
  set authInformation(value: AuthorizationData | undefined);
44
+ private currentDialog;
44
45
  getCurrentDialogDTOMapper(): IDTOMapper;
45
46
  constructor();
47
+ updateCurrentDialog(dto: RemoteDialogDTO): void;
46
48
  setUpMockStorage(): Promise<void>;
47
49
  private createUserSession;
48
50
  static initSDK(sdkParams: QBInitParams): boolean;
@@ -1,14 +1,18 @@
1
1
  import EventMessageType from './EventMessageType';
2
2
  import { NotificationTypes } from './NotificationTypes';
3
3
  import { MessageEntity } from './MessageEntity';
4
+ import { DialogEntity } from './DialogEntity';
4
5
  export type MessageStatus = {
6
+ deliveryStatus: 'delivered' | 'read' | 'sent' | 'sending';
5
7
  isTyping: boolean;
6
8
  userId: number;
7
9
  dialogId: string;
10
+ messageId: string;
8
11
  };
9
12
  export type DialogEventInfo = {
10
13
  eventMessageType: EventMessageType;
11
14
  notificationTypes: NotificationTypes | undefined;
15
+ dialogInfo?: DialogEntity | undefined;
12
16
  messageInfo: MessageEntity | undefined;
13
17
  messageStatus: MessageStatus | undefined;
14
18
  };
@@ -6,5 +6,5 @@ export interface FileEntity {
6
6
  name?: string;
7
7
  size?: number;
8
8
  type?: FileType;
9
- data?: string | File;
9
+ data?: File;
10
10
  }
@@ -5,7 +5,7 @@ export interface UserEntity {
5
5
  login: string;
6
6
  created_at: string;
7
7
  updated_at: string;
8
- last_request_at: string;
8
+ last_request_at: number;
9
9
  blob_id: string | null;
10
10
  photo: string | null;
11
11
  custom_data: string | null;
@@ -1,11 +1,11 @@
1
1
  import { IUseCase } from './base/IUseCase';
2
2
  import { MessageEntity } from '../entity/MessageEntity';
3
3
  import { IMessagesRepository } from '../repository/IMessagesRepository';
4
- import { Pagination } from '../repository/Pagination';
5
- export declare class GetAllMessagesForDialogMock implements IUseCase<void, Array<MessageEntity>> {
4
+ import { PaginatedResult, Pagination } from '../repository/Pagination';
5
+ export declare class GetAllMessagesForDialogMock implements IUseCase<void, PaginatedResult<MessageEntity>> {
6
6
  private messagesRepository;
7
7
  private readonly dialogId;
8
8
  private currentPagination;
9
9
  constructor(messagesRepository: IMessagesRepository, dialogId: string, currentPagination: Pagination);
10
- execute(): Promise<Array<MessageEntity>>;
10
+ execute(): Promise<PaginatedResult<MessageEntity>>;
11
11
  }
@@ -0,0 +1,10 @@
1
+ import { DialogEntity } from '../entity/DialogEntity';
2
+ import DialogsRepository from '../../Data/repository/DialogsRepository';
3
+ import { IUseCase } from './base/IUseCase';
4
+ import { GroupDialogEntity } from '../entity/GroupDialogEntity';
5
+ export declare class UpdateCurrentDialogInDataSourceUseCase implements IUseCase<void, DialogEntity> {
6
+ private dialogRepository;
7
+ private updateDialog;
8
+ constructor(dialogRepository: DialogsRepository, updateDialog: GroupDialogEntity);
9
+ execute(): Promise<DialogEntity>;
10
+ }
@@ -11,6 +11,7 @@ interface AIAssistProps {
11
11
  messageToAssist?: MessageEntity;
12
12
  messageHistory?: MessageEntity[];
13
13
  currentUserId?: number;
14
+ disableAction?: boolean;
14
15
  }
15
- export default function AIAssist({ loading, AIAssistWidget, maxTokens, onLoading, onError, messageToAssist, messageHistory, currentUserId, }: AIAssistProps): JSX.Element;
16
+ export default function AIAssist({ loading, AIAssistWidget, maxTokens, onLoading, onError, messageToAssist, messageHistory, currentUserId, disableAction, }: AIAssistProps): JSX.Element;
16
17
  export {};
@@ -15,6 +15,7 @@ interface AITranslateComponentProps {
15
15
  messageToTranslate?: MessageEntity;
16
16
  messageHistory?: MessageEntity[];
17
17
  currentUserId?: number;
18
+ disableAction?: boolean;
18
19
  }
19
- export default function AITranslate({ AITranslateWidget, originalTextMessage, loading, defaultLanguage, languages, maxTokens, onLoading, onError, onTranslated, messageToTranslate, messageHistory, currentUserId, }: AITranslateComponentProps): JSX.Element;
20
+ export default function AITranslate({ AITranslateWidget, originalTextMessage, loading, defaultLanguage, languages, maxTokens, onLoading, onError, onTranslated, messageToTranslate, messageHistory, currentUserId, disableAction, }: AITranslateComponentProps): JSX.Element;
20
21
  export {};
@@ -17,6 +17,7 @@ type AIRephraseWidgetProps = {
17
17
  rephraseTones: Tone[];
18
18
  theme?: UiKitTheme;
19
19
  setPrevValueText: FunctionTypeStringToVoid;
20
+ disableActions?: boolean;
20
21
  };
21
22
  declare const AIRephraseWidget: React.FC<AIRephraseWidgetProps>;
22
23
  export default AIRephraseWidget;
@@ -1,9 +1,11 @@
1
1
  import BaseViewModel, { FunctionTypeFileToToBoolean, FunctionTypeForwardMessagesParamsToBoolean, FunctionTypePaginationToVoid, FunctionTypeReplyMessagesParamsToBoolean, FunctionTypeStringToVoid, FunctionTypeVoidToVoid } from '../../../CommonTypes/BaseViewModel';
2
2
  import { MessageEntity } from '../../../Domain/entity/MessageEntity';
3
3
  import { DialogEntity } from '../../../Domain/entity/DialogEntity';
4
+ import { Pagination } from '../../../Domain/repository/Pagination';
4
5
  export interface DialogViewModel extends BaseViewModel<DialogEntity> {
5
6
  loading: boolean;
6
7
  error: string;
8
+ pagination: Pagination;
7
9
  messages: MessageEntity[];
8
10
  getMessages: FunctionTypePaginationToVoid;
9
11
  sendTextMessage: FunctionTypeStringToVoid;
@@ -8,6 +8,7 @@ type ForwardMessageFlowProps = {
8
8
  currentDialog: DialogEntity;
9
9
  currentUserName: string;
10
10
  onSendData: (dialogs: DialogEntity[], messages: MessageEntity[], relatedText: string) => void;
11
+ disableActions: boolean;
11
12
  };
12
13
  declare const ForwardMessageFlow: React.FC<ForwardMessageFlowProps>;
13
14
  export default ForwardMessageFlow;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import './InputForForwarding.scss';
1
+ /// <reference types="react" />
3
2
  import { FunctionTypeStringToVoid, FunctionTypeVoidToVoid } from '../../../../../CommonTypes/BaseViewModel';
3
+ import './InputForForwarding.scss';
4
4
  type InputForForwardingProps = {
5
5
  inputText: string;
6
6
  onChange: FunctionTypeStringToVoid;
@@ -8,5 +8,6 @@ export type MessageContextMenuProps = {
8
8
  enableReplying: boolean;
9
9
  onReply: FunctionTypeMessageEntityToVoid;
10
10
  onForward: FunctionTypeMessageEntityToVoid;
11
+ disableActions?: boolean;
11
12
  };
12
- export default function MessageContextMenu({ message, enableReplying, enableForwarding, onReply, onForward, }: MessageContextMenuProps): JSX.Element;
13
+ export default function MessageContextMenu({ message, enableReplying, enableForwarding, onReply, onForward, disableActions, }: MessageContextMenuProps): JSX.Element;
@@ -5,7 +5,7 @@ import { AIMessageWidget } from '../AIWidgets/AIMessageWidget';
5
5
  import './MessageItem.scss';
6
6
  export type MessageItemProps = {
7
7
  message: MessageEntity;
8
- userId?: number;
8
+ currentUserId?: number;
9
9
  AITranslateWidget?: AIMessageWidget;
10
10
  AIAssistWidget?: AIMessageWidget;
11
11
  maxTokens: number;
@@ -18,5 +18,6 @@ export type MessageItemProps = {
18
18
  listRef?: RefObject<HTMLDivElement>;
19
19
  messagesToView: MessageEntity[];
20
20
  onError: (messageError: string) => void;
21
+ disableAction?: boolean;
21
22
  };
22
- export default function MessageItem({ message, userId, enableForwarding, enableReplying, onReply, onForward, listRef, messagesToView, AITranslateWidget, AIAssistWidget, maxTokens, defaultTranslationLanguage, languagesForAITranslate, onError, }: MessageItemProps): JSX.Element | null;
23
+ export default function MessageItem({ message, currentUserId, enableForwarding, enableReplying, onReply, onForward, listRef, messagesToView, AITranslateWidget, AIAssistWidget, maxTokens, defaultTranslationLanguage, languagesForAITranslate, onError, disableAction, }: MessageItemProps): JSX.Element | null;
@@ -15,6 +15,7 @@ type HeaderDialogsProps = {
15
15
  subHeaderContent?: React.ReactNode;
16
16
  upHeaderContent?: React.ReactNode;
17
17
  rootStyles?: React.CSSProperties;
18
+ disableAction?: boolean;
18
19
  };
19
20
  declare const DialogInfo: React.FC<HeaderDialogsProps>;
20
21
  export default DialogInfo;
@@ -25,6 +25,7 @@ type DialogsProps = {
25
25
  onCreateDialog?: FunctionTypeVoidToVoid;
26
26
  dialogListViewModel: DialogListViewModel;
27
27
  additionalSettings?: DialogsComponentSettings;
28
+ disableAction?: boolean;
28
29
  scrollableHeight?: number;
29
30
  };
30
31
  declare const DialogList: React.FC<DialogsProps>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import './EditDialog.scss';
3
2
  import { FunctionTypeEditDialogParamsToVoid, FunctionTypeVoidToVoid } from '../../../CommonTypes/BaseViewModel';
4
3
  import { DialogType } from '../../../Domain/entity/DialogTypes';
4
+ import './EditDialog.scss';
5
5
  export declare const TypeOpenDialog: {
6
6
  readonly edit: "edit";
7
7
  readonly create: "create";
@@ -14,6 +14,7 @@ type EditDialogProps = {
14
14
  typeAddEditDialog: OpenDialogArcheType;
15
15
  clickUpdatedHandler?: FunctionTypeEditDialogParamsToVoid;
16
16
  clickCancelHandler?: FunctionTypeVoidToVoid;
17
+ disableActions?: boolean;
17
18
  };
18
19
  declare const EditDialog: React.FC<EditDialogProps>;
19
20
  export default EditDialog;
@@ -5,6 +5,7 @@ type CreateNewDialogFlowProps = {
5
5
  dialogsViewModel: DialogListViewModel;
6
6
  onFinished: (newEntity: DialogEntity) => void;
7
7
  onCancel?: () => void;
8
+ isOnline: boolean;
8
9
  };
9
10
  declare const CreateNewDialogFlow: React.FC<CreateNewDialogFlowProps>;
10
11
  export default CreateNewDialogFlow;
@@ -31,6 +31,7 @@ type PreviewDialogsProps = {
31
31
  theme?: PreviewDialogsTheme;
32
32
  onLeaveDialog: FunctionTypeDialogEntityToVoid;
33
33
  additionalSettings?: PreviewDialogSettings;
34
+ disableActions?: boolean;
34
35
  };
35
36
  declare const PreviewDialog: React.FC<PreviewDialogsProps>;
36
37
  export default PreviewDialog;
@@ -2,6 +2,7 @@ import ConnectionRepository from '../../../Data/repository/ConnectionRepository'
2
2
  type QBConnectionInfo = {
3
3
  connectionRepository: ConnectionRepository;
4
4
  browserOnline: boolean;
5
+ connectionStatus: boolean;
5
6
  };
6
7
  declare const useQBConnection: () => QBConnectionInfo;
7
8
  export default useQBConnection;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import React, { ReactElement } from 'react';
2
2
  import './DialogWindow.scss';
3
3
  interface DialogWindowProps {
4
4
  open: boolean;
@@ -6,6 +6,7 @@ interface DialogWindowProps {
6
6
  children: ReactElement | ReactElement[];
7
7
  onClose?: VoidFunction;
8
8
  className?: string;
9
+ disableActions?: boolean;
9
10
  }
10
- export default function DialogWindow({ children, onClose, open, title, className, }: DialogWindowProps): import("react").ReactPortal | null;
11
+ export default function DialogWindow({ children, onClose, open, title, className, disableActions, }: DialogWindowProps): React.ReactPortal | null;
11
12
  export {};
@@ -2,11 +2,12 @@ import { ReactElement } from 'react';
2
2
  export interface Option {
3
3
  value: string;
4
4
  label: string;
5
+ disabled?: boolean;
5
6
  leftIcon?: ReactElement;
6
7
  rightIcon?: ReactElement;
7
8
  }
8
9
  interface DropdownOptionProps extends Option {
9
10
  onSelect: (value: string) => void;
10
11
  }
11
- export default function DropdownOption({ label, value, leftIcon, rightIcon, onSelect, }: DropdownOptionProps): JSX.Element;
12
+ export default function DropdownOption({ label, value, disabled, leftIcon, rightIcon, onSelect, }: DropdownOptionProps): JSX.Element;
12
13
  export {};
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  type AttachmentMessageProps = {
3
3
  icon: React.ReactNode;
4
4
  onChangeFile: (event: React.ChangeEvent<HTMLInputElement>) => void;
5
+ disableAction: boolean;
5
6
  };
6
7
  declare const AttachmentUploader: React.FC<AttachmentMessageProps>;
7
8
  export default AttachmentUploader;
@@ -14,6 +14,7 @@ export type MessageInputProps = {
14
14
  rephrase?: ReactElement;
15
15
  loading?: boolean;
16
16
  placeholder?: string;
17
+ disableActions?: boolean;
17
18
  className?: string;
18
19
  };
19
20
  declare const MessageInput: React.FC<MessageInputProps>;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react';
2
2
  import MessageInput from './MessageInput';
3
3
  declare const meta: Meta<typeof MessageInput>;
4
4
  export default meta;
5
- export declare const Default: StoryObj<typeof MessageInput>;
6
- export declare const WithVoiceMessage: StoryObj<typeof MessageInput>;
7
- export declare const WithPreview: StoryObj<typeof MessageInput>;
8
- export declare const LoadingState: StoryObj<typeof MessageInput>;
5
+ export declare const MessageInputDefault: StoryObj<typeof MessageInput>;
6
+ export declare const MessageInputWithVoiceMessage: StoryObj<typeof MessageInput>;
7
+ export declare const MessageInputWithPreview: StoryObj<typeof MessageInput>;
8
+ export declare const MessageInputLoadingState: StoryObj<typeof MessageInput>;