quickblox-react-ui-kit 0.4.6-beta.5 → 0.4.7-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/dist/CommonTypes/CommonTypes.d.ts +13 -0
  2. package/dist/Data/dto/dialog/RemoteDialogDTO.d.ts +1 -0
  3. package/dist/Data/dto/file/LocalFileDTO.d.ts +1 -1
  4. package/dist/Data/dto/file/RemoteFileDTO.d.ts +1 -1
  5. package/dist/Data/source/remote/RemoteDataSource.d.ts +5 -0
  6. package/dist/Domain/entity/ChatMessageAttachmentEntity.d.ts +1 -1
  7. package/dist/Domain/entity/FileEntity.d.ts +1 -1
  8. package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.d.ts +1 -1
  9. package/dist/Presentation/Views/Flow/CreateDialog/CreateDialog.d.ts +1 -0
  10. package/dist/Presentation/ui-components/DialogItemPreview/DialogItemPreview.d.ts +3 -3
  11. package/dist/Presentation/ui-components/Header/Header.d.ts +1 -1
  12. package/dist/index-ui.d.ts +47 -3
  13. package/dist/index-ui.js +24956 -16976
  14. package/dist/index-ui.js.map +1 -1
  15. package/global.d.ts +3 -202
  16. package/package.json +2 -2
  17. package/src/App.scss +5 -0
  18. package/src/App.tsx +58 -33
  19. package/src/CommonTypes/CommonTypes.ts +14 -0
  20. package/src/Data/DefaultConfigurations.ts +4 -0
  21. package/src/Data/Stubs.ts +10 -0
  22. package/src/Data/dto/dialog/RemoteDialogDTO.ts +4 -0
  23. package/src/Data/dto/file/LocalFileDTO.ts +1 -1
  24. package/src/Data/dto/file/RemoteFileDTO.ts +1 -1
  25. package/src/Data/mapper/DialogRemoteDTOMapper.ts +6 -0
  26. package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +13 -0
  27. package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +5 -5
  28. package/src/Data/source/remote/RemoteDataSource.ts +215 -153
  29. package/src/Domain/entity/ChatMessageAttachmentEntity.ts +1 -1
  30. package/src/Domain/entity/FileEntity.ts +1 -1
  31. package/src/Domain/use_cases/CreateDialogUseCase.ts +0 -1
  32. package/src/Domain/use_cases/ForwardMessagesUseCase.ts +0 -1
  33. package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -1
  34. package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -2
  35. package/src/Domain/use_cases/GetAllMessagesForDialog.ts +0 -1
  36. package/src/Domain/use_cases/GetAllUsersUseCase.ts +0 -1
  37. package/src/Domain/use_cases/GetDialogByIdUseCase.ts +0 -2
  38. package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +0 -1
  39. package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -1
  40. package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -1
  41. package/src/Domain/use_cases/ReplyMessagesUseCase.ts +0 -2
  42. package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -3
  43. package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -26
  44. package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -1
  45. package/src/Domain/use_cases/SyncDialogsUseCase.ts +1 -2
  46. package/src/Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase.ts +0 -2
  47. package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -2
  48. package/src/Domain/use_cases/UploadFileUseCase.ts +0 -2
  49. package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -2
  50. package/src/Domain/use_cases/ai/AIAnswerAssistUseCase.ts +0 -2
  51. package/src/Domain/use_cases/ai/AIAnswerAssistWithProxyUseCase.ts +0 -3
  52. package/src/Domain/use_cases/ai/AIAnswerAssistWithSDKUseCase.ts +0 -2
  53. package/src/Domain/use_cases/ai/AIRephraseUseCase.ts +0 -3
  54. package/src/Domain/use_cases/ai/AIRephraseWithProxyUseCase.ts +0 -3
  55. package/src/Domain/use_cases/ai/AITranslateUseCase.ts +0 -2
  56. package/src/Domain/use_cases/ai/AITranslateWithProxyUseCase.ts +0 -3
  57. package/src/Domain/use_cases/ai/AITranslateWithSDKUseCase.ts +0 -3
  58. package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +0 -1
  59. package/src/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.tsx +1 -1
  60. package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.scss +12 -6
  61. package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.tsx +4 -2
  62. package/src/Presentation/Views/Dialog/Dialog.scss +7 -1
  63. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.scss +17 -29
  64. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.tsx +8 -13
  65. package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.scss +9 -9
  66. package/src/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.scss +11 -0
  67. package/src/Presentation/Views/Dialog/MessageContextMenu/MessageContextMenu.tsx +3 -2
  68. package/src/Presentation/Views/Dialog/useDialogViewModel.ts +76 -24
  69. package/src/Presentation/Views/DialogInfo/DialogInfo.scss +23 -27
  70. package/src/Presentation/Views/DialogInfo/DialogInfo.tsx +2 -2
  71. package/src/Presentation/Views/DialogInfo/DialogMemberButton/DialogMembersButton.scss +0 -17
  72. package/src/Presentation/Views/DialogInfo/MembersList/MembersList.scss +9 -1
  73. package/src/Presentation/Views/DialogInfo/UsersList/SingleUser/SingleUser.scss +0 -1
  74. package/src/Presentation/Views/DialogInfo/UsersList/useUsersListViewModel.ts +2 -4
  75. package/src/Presentation/Views/DialogList/useDialogListViewModel.ts +38 -13
  76. package/src/Presentation/Views/EditDialog/EditDialog.scss +1 -38
  77. package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.scss +17 -42
  78. package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.tsx +45 -39
  79. package/src/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.tsx +6 -2
  80. package/src/Presentation/Views/InviteMembers/InviteMembers.scss +4 -33
  81. package/src/Presentation/Views/InviteMembers/InviteMembers.tsx +23 -4
  82. package/src/Presentation/Views/PreviewDialog/PreviewDialog.scss +8 -0
  83. package/src/Presentation/Views/PreviewDialog/PreviewDialog.tsx +8 -5
  84. package/src/Presentation/components/UI/Buttons/MainButton/MainButton.css +5 -10
  85. package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.scss +0 -5
  86. package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.scss +1 -10
  87. package/src/Presentation/layouts/TestStage/LoginView/Login.scss +6 -3
  88. package/src/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +1 -33
  89. package/src/Presentation/themes/styles/_theme_colors_scheme.scss +1 -1
  90. package/src/Presentation/themes/styles/_theme_dark.scss +5 -4
  91. package/src/Presentation/themes/styles/_theme_light.scss +3 -2
  92. package/src/Presentation/ui-components/Avatar/Avatar.scss +8 -5
  93. package/src/Presentation/ui-components/Avatar/Avatar.tsx +2 -1
  94. package/src/Presentation/ui-components/Badge/Badge.tsx +1 -0
  95. package/src/Presentation/ui-components/Button/Button.scss +5 -6
  96. package/src/Presentation/ui-components/Button/Button.tsx +7 -2
  97. package/src/Presentation/ui-components/CheckBox/CheckBox.scss +23 -0
  98. package/src/Presentation/ui-components/CheckBox/CheckBox.tsx +19 -7
  99. package/src/Presentation/ui-components/DialogBanner/DialogBanner.tsx +1 -0
  100. package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.scss +3 -3
  101. package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.tsx +3 -3
  102. package/src/Presentation/ui-components/DialogWindow/DialogWindow.scss +7 -4
  103. package/src/Presentation/ui-components/DialogWindow/DialogWindow.tsx +1 -1
  104. package/src/Presentation/ui-components/Dropdown/Dropdown.tsx +1 -1
  105. package/src/Presentation/ui-components/Dropdown/DropdownOption.tsx +2 -1
  106. package/src/Presentation/ui-components/Header/Header.scss +9 -2
  107. package/src/Presentation/ui-components/Header/Header.tsx +1 -1
  108. package/src/Presentation/ui-components/Loader/Loader.tsx +1 -0
  109. package/src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.scss +1 -0
  110. package/src/Presentation/ui-components/Message/Bubble/FileBubble/FileBubble.tsx +1 -0
  111. package/src/Presentation/ui-components/Message/Bubble/ImageBubble/ImageBubble.tsx +1 -0
  112. package/src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.scss +13 -3
  113. package/src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.tsx +1 -0
  114. package/src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.tsx +1 -0
  115. package/src/Presentation/ui-components/Message/FileUrl/FileUrl.scss +0 -3
  116. package/src/Presentation/ui-components/Message/FileUrl/FileUrl.tsx +1 -0
  117. package/src/Presentation/ui-components/Message/Message.scss +5 -1
  118. package/src/Presentation/ui-components/MessageInput/MessageInput.scss +5 -1
  119. package/src/Presentation/ui-components/MessageInput/MessageInput.tsx +1 -1
  120. package/src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.tsx +1 -1
  121. package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.scss +13 -13
  122. package/src/Presentation/ui-components/Placeholder/Placeholder.scss +5 -0
  123. package/src/Presentation/ui-components/Placeholder/Placeholder.tsx +1 -1
  124. package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss +4 -1
  125. package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx +1 -0
  126. package/src/Presentation/ui-components/SettingsItem/SettingsItem.scss +5 -1
  127. package/src/Presentation/ui-components/SettingsItem/SettingsItem.tsx +1 -1
  128. package/src/Presentation/ui-components/TextField/TextField.scss +5 -3
  129. package/src/Presentation/ui-components/Toast/Toast.scss +2 -2
  130. package/src/Presentation/ui-components/Toast/ToastProvider.tsx +1 -1
  131. package/src/Presentation/ui-components/UserListItem/UserListItem.scss +11 -3
  132. package/src/Presentation/ui-components/UserListItem/UserListItem.tsx +1 -0
  133. package/src/QBconfig.ts +2 -0
  134. package/src/hooks/useQuickBloxUIKit.ts +101 -18
  135. package/src/index-ui.ts +111 -18
  136. package/src/qb-api-calls/index.ts +52 -3
  137. package/storybook-static/{217.3c66ff1e.iframe.bundle.js → 217.07d5c7a3.iframe.bundle.js} +3 -3
  138. package/storybook-static/{217.3c66ff1e.iframe.bundle.js.map → 217.07d5c7a3.iframe.bundle.js.map} +1 -1
  139. package/storybook-static/363.a2d33b79.iframe.bundle.js +2 -0
  140. package/storybook-static/{363.2cb21716.iframe.bundle.js.LICENSE.txt → 363.a2d33b79.iframe.bundle.js.LICENSE.txt} +0 -13
  141. package/storybook-static/735.6ee62079.iframe.bundle.js +2 -0
  142. package/storybook-static/{844.6041e1a5.iframe.bundle.js → 844.e8bfd664.iframe.bundle.js} +3 -3
  143. package/storybook-static/{844.6041e1a5.iframe.bundle.js.map → 844.e8bfd664.iframe.bundle.js.map} +1 -1
  144. package/storybook-static/{961.c94da456.iframe.bundle.js → 961.d47fc2bc.iframe.bundle.js} +2 -2
  145. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.a5ba7608.iframe.bundle.js +2 -0
  146. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.c8824861.iframe.bundle.js +2 -0
  147. package/storybook-static/Presentation-ui-components-Button-Button-stories.fa2aa72c.iframe.bundle.js +2 -0
  148. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.b6998344.iframe.bundle.js +2 -0
  149. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.a724643f.iframe.bundle.js +2 -0
  150. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.a03feb06.iframe.bundle.js +2 -0
  151. package/storybook-static/Presentation-ui-components-Header-Header-stories.978f0af5.iframe.bundle.js +2 -0
  152. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.4e80520d.iframe.bundle.js +2 -0
  153. package/storybook-static/Presentation-ui-components-Message-Message-stories.213a90f6.iframe.bundle.js +2 -0
  154. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.9b4b2514.iframe.bundle.js +1 -0
  155. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.e7f5a274.iframe.bundle.js +2 -0
  156. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.969cfe2e.iframe.bundle.js +2 -0
  157. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.4f00432b.iframe.bundle.js +1 -0
  158. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.1713eab7.iframe.bundle.js +2 -0
  159. package/storybook-static/iframe.html +2 -2
  160. package/storybook-static/project.json +1 -1
  161. package/storybook-static/{runtime~main.5a7ba727.iframe.bundle.js → runtime~main.940703c6.iframe.bundle.js} +1 -1
  162. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +1 -1
  163. package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +3 -3
  164. package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +1 -1
  165. package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +1 -1
  166. package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +1 -1
  167. package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +1 -1
  168. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +1 -1
  169. package/storybook-static/sb-manager/globals-runtime.js +1 -1
  170. package/.env +0 -1
  171. package/src/package_artan_react_ui.json +0 -91
  172. package/src/package_original.json +0 -115
  173. package/storybook-static/363.2cb21716.iframe.bundle.js +0 -2
  174. package/storybook-static/735.82f96f8a.iframe.bundle.js +0 -2
  175. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.b363e9a1.iframe.bundle.js +0 -2
  176. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.85dd97b0.iframe.bundle.js +0 -2
  177. package/storybook-static/Presentation-ui-components-Button-Button-stories.1e4ae2b4.iframe.bundle.js +0 -2
  178. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.4e25a94d.iframe.bundle.js +0 -2
  179. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.e22e8be5.iframe.bundle.js +0 -2
  180. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.8321872b.iframe.bundle.js +0 -2
  181. package/storybook-static/Presentation-ui-components-Header-Header-stories.1cff200a.iframe.bundle.js +0 -2
  182. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.7391dde4.iframe.bundle.js +0 -2
  183. package/storybook-static/Presentation-ui-components-Message-Message-stories.49f0dbbf.iframe.bundle.js +0 -2
  184. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.4aa88de3.iframe.bundle.js +0 -1
  185. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.d74853ab.iframe.bundle.js +0 -2
  186. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.19812f7d.iframe.bundle.js +0 -2
  187. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.5e19f10e.iframe.bundle.js +0 -1
  188. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.d2f60e13.iframe.bundle.js +0 -2
  189. /package/storybook-static/{217.3c66ff1e.iframe.bundle.js.LICENSE.txt → 217.07d5c7a3.iframe.bundle.js.LICENSE.txt} +0 -0
  190. /package/storybook-static/{735.82f96f8a.iframe.bundle.js.LICENSE.txt → 735.6ee62079.iframe.bundle.js.LICENSE.txt} +0 -0
  191. /package/storybook-static/{844.6041e1a5.iframe.bundle.js.LICENSE.txt → 844.e8bfd664.iframe.bundle.js.LICENSE.txt} +0 -0
  192. /package/storybook-static/{961.c94da456.iframe.bundle.js.LICENSE.txt → 961.d47fc2bc.iframe.bundle.js.LICENSE.txt} +0 -0
  193. /package/storybook-static/{Presentation-ui-components-Avatar-avatar-stories.b363e9a1.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Avatar-avatar-stories.a5ba7608.iframe.bundle.js.LICENSE.txt} +0 -0
  194. /package/storybook-static/{Presentation-ui-components-Badge-Badge-stories.85dd97b0.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Badge-Badge-stories.c8824861.iframe.bundle.js.LICENSE.txt} +0 -0
  195. /package/storybook-static/{Presentation-ui-components-Button-Button-stories.1e4ae2b4.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Button-Button-stories.fa2aa72c.iframe.bundle.js.LICENSE.txt} +0 -0
  196. /package/storybook-static/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.4e25a94d.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.b6998344.iframe.bundle.js.LICENSE.txt} +0 -0
  197. /package/storybook-static/{Presentation-ui-components-DialogWindow-DialogWindow-stories.e22e8be5.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-DialogWindow-DialogWindow-stories.a724643f.iframe.bundle.js.LICENSE.txt} +0 -0
  198. /package/storybook-static/{Presentation-ui-components-Dropdown-Dropdown-stories.8321872b.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Dropdown-Dropdown-stories.a03feb06.iframe.bundle.js.LICENSE.txt} +0 -0
  199. /package/storybook-static/{Presentation-ui-components-Header-Header-stories.1cff200a.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Header-Header-stories.978f0af5.iframe.bundle.js.LICENSE.txt} +0 -0
  200. /package/storybook-static/{Presentation-ui-components-Loader-Loader-stories.7391dde4.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Loader-Loader-stories.4e80520d.iframe.bundle.js.LICENSE.txt} +0 -0
  201. /package/storybook-static/{Presentation-ui-components-Message-Message-stories.49f0dbbf.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Message-Message-stories.213a90f6.iframe.bundle.js.LICENSE.txt} +0 -0
  202. /package/storybook-static/{Presentation-ui-components-SettingsItem-SettingsItem-stories.d74853ab.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-SettingsItem-SettingsItem-stories.e7f5a274.iframe.bundle.js.LICENSE.txt} +0 -0
  203. /package/storybook-static/{Presentation-ui-components-TextField-TextField-stories.19812f7d.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-TextField-TextField-stories.969cfe2e.iframe.bundle.js.LICENSE.txt} +0 -0
  204. /package/storybook-static/{Presentation-ui-components-UserListItem-UserListItem-stories.d2f60e13.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-UserListItem-UserListItem-stories.1713eab7.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -73,10 +73,22 @@ export interface QBUIKitConfig extends QBConfig {
73
73
  chatProtocol: {
74
74
  active: number;
75
75
  };
76
+ pingLocalhostTimeInterval: number;
77
+ chatReconnectionTimeInterval: number;
76
78
  debug: boolean;
77
79
  enableForwarding: boolean;
78
80
  enableReplying: boolean;
79
81
  regexUserName?: string;
82
+ /**
83
+ * Whether public dialogs should be shown in the dialogs list.
84
+ * Defaults to false if not provided.
85
+ */
86
+ showPublicDialogsInList?: boolean;
87
+ /**
88
+ * Whether creating public dialogs is allowed.
89
+ * Defaults to false if not provided.
90
+ */
91
+ allowPublicDialogCreation?: boolean;
80
92
  endpoints: {
81
93
  api: string;
82
94
  chat: string;
@@ -154,6 +166,7 @@ export interface QBUIKitChatDialog extends QBChatDialog {
154
166
  };
155
167
  new_occupants_ids?: number[];
156
168
  joined?: boolean;
169
+ is_join_required: number | undefined | null;
157
170
  }
158
171
  export interface QBUIKitChatNewMessage extends QBChatNewMessage {
159
172
  type: 'chat' | 'groupchat';
@@ -14,5 +14,6 @@ export declare class RemoteDialogDTO {
14
14
  unreadMessageCount: number;
15
15
  name: string;
16
16
  photo: string;
17
+ is_join_required: number | undefined | null;
17
18
  constructor();
18
19
  }
@@ -3,7 +3,7 @@ export declare class LocalFileDTO {
3
3
  uid: string;
4
4
  url: string;
5
5
  name: string;
6
- size: number;
6
+ size: number | string;
7
7
  type?: string;
8
8
  data: string;
9
9
  constructor();
@@ -3,7 +3,7 @@ export declare class RemoteFileDTO {
3
3
  uid: string;
4
4
  url: string;
5
5
  name: string;
6
- size: number;
6
+ size: number | string;
7
7
  type: string;
8
8
  data: File | undefined;
9
9
  constructor();
@@ -50,6 +50,7 @@ export declare class RemoteDataSource implements IRemoteDataSource {
50
50
  set authInformation(value: AuthorizationData | undefined);
51
51
  private currentDialog;
52
52
  getCurrentDialogDTOMapper(): IDTOMapper;
53
+ private startUserCachePreload;
53
54
  constructor();
54
55
  createAnswer(text: string, messages: AIChatHistory, smartChatAssistantId: string): Promise<AIAnswerResponse>;
55
56
  translate(text: string, languageCode: string, smartChatAssistantId: string): Promise<AIAnswerResponse>;
@@ -77,6 +78,10 @@ export declare class RemoteDataSource implements IRemoteDataSource {
77
78
  initEventsHandlers(): void;
78
79
  releaseEventsHandlers(): void;
79
80
  loginWithUser(authParams: LoginData): Promise<void>;
81
+ private joinGroupDialog;
82
+ private startJoinRetryProcess;
83
+ private processDialogsInBackground;
84
+ private processDialogs;
80
85
  getDialogs(pagination?: Pagination): Promise<RemoteDialogsDTO>;
81
86
  createDialog(dto: RemoteDialogDTO): Promise<RemoteDialogDTO>;
82
87
  updateDialog(dto: RemoteDialogDTO): Promise<RemoteDialogDTO>;
@@ -9,6 +9,6 @@ export default interface ChatMessageAttachmentEntity {
9
9
  /** Link to a file in Internet */
10
10
  url?: string;
11
11
  name?: string;
12
- size?: number;
12
+ size?: number | string;
13
13
  [key: string]: unknown;
14
14
  }
@@ -4,7 +4,7 @@ export interface FileEntity {
4
4
  uid: string;
5
5
  url?: string;
6
6
  name?: string;
7
- size?: number;
7
+ size?: number | string;
8
8
  type?: FileType;
9
9
  data?: File;
10
10
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import './DialogListItem.scss';
3
2
  import { FunctionTypeStringToVoid } from '../../../../../../CommonTypes/BaseViewModel';
4
3
  import { DialogType } from '../../../../../../Domain/entity/DialogTypes';
4
+ import './DialogListItem.scss';
5
5
  type DialogListItemProps = {
6
6
  name: string;
7
7
  avatar: string;
@@ -8,6 +8,7 @@ type CreateDialogProps = {
8
8
  createGroupDialogOnTouch: FunctionTypeVoidToVoid;
9
9
  createPublicDialogOnClick: FunctionTypeVoidToVoid;
10
10
  createPublicDialogOnTouch: FunctionTypeVoidToVoid;
11
+ allowPublicDialogCreation: boolean;
11
12
  };
12
13
  declare const CreateDialog: React.FC<CreateDialogProps>;
13
14
  export default CreateDialog;
@@ -1,9 +1,9 @@
1
- import { ReactElement } from 'react';
1
+ import React, { ReactElement } from 'react';
2
2
  import { FunctionTypeVoidToVoid } from '../../../CommonTypes/BaseViewModel';
3
3
  import './DialogItemPreview.scss';
4
4
  export type DialogItemPreviewProps = {
5
- avatar: ReactElement;
6
- title: string;
5
+ avatar?: ReactElement;
6
+ title?: string;
7
7
  active?: boolean;
8
8
  date?: string;
9
9
  lastMessage?: ReactElement | string;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import React, { ReactElement } from 'react';
2
2
  import { FunctionTypeVoidToVoid } from '../../../CommonTypes/BaseViewModel';
3
3
  import './Header.scss';
4
4
  export type HeaderProps = {
@@ -29,8 +29,8 @@ import { AISource, IChatMessage } from './Data/source/AISource';
29
29
  import AIWidgetIcon from './Presentation/components/UI/svgs/Icons/AIWidgets/AIWidget';
30
30
  import ErrorMessageIcon from './Presentation/Views/Dialog/AIWidgets/ErrorMessageIcon';
31
31
  import PreviewDialogViewModel from './Presentation/Views/PreviewDialog/PreviewDialogViewModel';
32
- import { AvatarContentIncomingUserProps } from './Presentation/Views/Dialog/Message/IncomingMessage/AvatarContentIncomingUser/AvatarContentIncomingUser';
33
- import { GetUserNameFct } from './Presentation/Views/Dialog/Message/IncomingMessage/IncomingMessage';
32
+ import AvatarContentIncomingUser, { AvatarContentIncomingUserProps } from './Presentation/Views/Dialog/Message/IncomingMessage/AvatarContentIncomingUser/AvatarContentIncomingUser';
33
+ import { GetUserNameFct, IncomingMessage } from './Presentation/Views/Dialog/Message/IncomingMessage/IncomingMessage';
34
34
  import { AIWidgetPlaceHolder, QuickBloxUIKitProps, QuickBloxUIKitDesktopLayoutProps } from './CommonTypes/CommonTypes';
35
35
  import useQuickBloxUIKit from './hooks/useQuickBloxUIKit';
36
36
  import MessageItem from './Presentation/Views/Dialog/MessageItem/MessageItem';
@@ -59,4 +59,48 @@ import AIAssist from './Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist
59
59
  import MessageContextMenu from './Presentation/Views/Dialog/Message/MessageContextMenu/MessageContextMenu';
60
60
  import AttachmentBubble from './Presentation/ui-components/Message/Bubble/AttachmentBubble/AttachmentBubble';
61
61
  import { HighLightLink, messageHasUrls } from './Presentation/Views/Dialog/Message/HighLightLink/HighLightLink';
62
- export { AttachmentBubble, HighLightLink, messageHasUrls, AIAssist, MessageContextMenu, type FunctionTypeMessageEntityToVoid, MessageDTOMapper, AITranslate, getTimeShort24hFormat, TextBubble, Avatar, Badge, Button, CheckBox, DialogBanner, DialogItemPreview, DialogWindow, Dropdown, Header, Loader, Message, MessageInput, MessageSeparator, Placeholder, PreviewFileMessage, SettingsItem, TextField, ToastProvider, UserListItem, MainButton, TypeButton, type LoginData, type AuthorizationData, QuickBloxUIKitProvider, qbDataContext, type QBDataContextType, RemoteDataSource, LocalDataSource, useQBConnection, useQbInitializedDataContext, useQbUIKitDataContext, useEventMessagesRepository, type DialogListViewModel, useDialogListViewModel, SubscribeToDialogEventsUseCase, Pagination, type DialogEventInfo, EventMessageType, NotificationTypes, stringifyError, DesktopLayout, DialogList, Dialog, DialogInfo, type DialogEntity, BaseViewModel, QuickBloxUIKitDesktopLayout, DefaultTheme, type UiKitTheme, type AIMessageWidget, AISource, type IChatMessage, AIWidgetIcon, ErrorMessageIcon, PreviewDialogViewModel, type FunctionTypeViewModelToVoid, type AvatarContentIncomingUserProps, type GetUserNameFct, type AIWidgetPlaceHolder, type QuickBloxUIKitProps, type QuickBloxUIKitDesktopLayoutProps, DefaultConfigurations, DialogType, GroupDialogEntity, PublicDialogEntity, type MessageEntity, getDateForDialog, ReplyMessagePreview, ForwardMessageFlow, SectionList, type SectionItem, MembersList, PreviewDialog, CreateNewDialogFlow, GroupChatSvg, InformationSvg, PublicChannelSvg, UserSvg, NewChatSvg, SearchSvg, ChatSvg, useQuickBloxUIKit, MessageItem, AIRephraseWidget, };
62
+ import AIAssistComponent from './Presentation/Views/Dialog/AIComponents/AIAssistComponent/AIAssistComponent';
63
+ import AITranslateComponent from './Presentation/Views/Dialog/AIComponents/AITranslateComponent/AITranslateComponent';
64
+ import AIWidgetActions from './Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions';
65
+ import SliderMenu from './Presentation/Views/Dialog/AIWidgets/SliderMenu';
66
+ import ContextMenu from './Presentation/Views/Dialog/ContextMenu/ContextMenu';
67
+ import DialogHeader from './Presentation/Views/Dialog/DialogHeader/DialogHeader';
68
+ import DialogBackIcon from './Presentation/Views/Dialog/DialogHeader/DialogBackIcon/DialogBackIcon';
69
+ import DialogInfoIcon from './Presentation/Views/Dialog/DialogHeader/DialogInfoIcon/DialogInfoIcon';
70
+ import { DropDownMenu } from './Presentation/Views/Dialog/DropDownMenu/DropDownMenu';
71
+ import { ItemDropDownMenu } from './Presentation/Views/Dialog/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu';
72
+ import { ErrorToast } from './Presentation/Views/Dialog/ErrorToast/ErrorToast';
73
+ import InputForForwarding from './Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding';
74
+ import ForwardMessagePreview from './Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessagePreview/ForwardMessagePreview';
75
+ import DialogsWithSearch from './Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogsWithSearch';
76
+ import SearchComponent from './Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/SearchComponent/SearchComponent';
77
+ import DialogListItem from './Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem';
78
+ import InputMessage from './Presentation/Views/Dialog/InputMessage/InputMessage';
79
+ import OutgoingRepliedMessage from './Presentation/Views/Dialog/Message/OutgoingRepliedMessage/OutgoingRepliedMessage';
80
+ import { OutgoingMessage } from './Presentation/Views/Dialog/Message/OutgoingMessage/OutgoingMessage';
81
+ import OutgoingForwardedMessage from './Presentation/Views/Dialog/Message/OutgoinForwardedMessage/OutgoinForwardedMessage';
82
+ import MessageAttachment from './Presentation/Views/Dialog/Message/MessageAttachment/MessageAttachment';
83
+ import VideoAttachment from './Presentation/Views/Dialog/Message/MessageAttachment/VideoAttachment/VideoAttachment';
84
+ import ImageAttachment from './Presentation/Views/Dialog/Message/MessageAttachment/ImageAttachment/ImageAttachment';
85
+ import DefaultAttachment from './Presentation/Views/Dialog/Message/MessageAttachment/DefaultAttachment/DefaultAttachment';
86
+ import AudioAttachment from './Presentation/Views/Dialog/Message/MessageAttachment/AudioAttachment/AudioAttachment';
87
+ import IncomingRepliedMessage from './Presentation/Views/Dialog/Message/IncomingRepliedMessage/IncomingRepliedMessage';
88
+ import MessageContentComponent from './Presentation/Views/Dialog/Message/IncomingMessage/MessageContentComponent/MessageContentComponent';
89
+ import IncomingForwardedMessage from './Presentation/Views/Dialog/Message/IncomingForwardedMessage/IncomingForwardedMessage';
90
+ import { SystemDateBanner } from './Presentation/Views/Dialog/SystemDateBanner/SystemDateBanner';
91
+ import { SystemMessageBanner } from './Presentation/Views/Dialog/SystemMessageBanner/SystemMessageBanner';
92
+ import VoiceMessage from './Presentation/Views/Dialog/VoiceMessage/VoiceMessage';
93
+ import UsersList from './Presentation/Views/DialogInfo/UsersList/UsersList';
94
+ import UserSingle from './Presentation/Views/DialogInfo/UsersList/SingleUser/SingleUser';
95
+ import DialogMembersButton from './Presentation/Views/DialogInfo/DialogMemberButton/DialogMembersButton';
96
+ import DialogListHeader from './Presentation/Views/DialogListHeader/DialogListHeader';
97
+ import EditDialog from './Presentation/Views/EditDialog/EditDialog';
98
+ import UserAvatar from './Presentation/Views/EditDialog/UserAvatar/UserAvatar';
99
+ import LeaveDialogFlow from './Presentation/Views/Flow/LeaveDialogFlow/LeaveDialogFlow';
100
+ import CreateDialog from './Presentation/Views/Flow/CreateDialog/CreateDialog';
101
+ import InviteMembers from './Presentation/Views/InviteMembers/InviteMembers';
102
+ import NotFoundContent from './Presentation/Views/InviteMembers/NotFoundContent/NotFoundContent';
103
+ import SingleUserWithCheckBox from './Presentation/Views/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox';
104
+ import PreviewDialogContextMenu from './Presentation/Views/PreviewDialog/PreviewDialogContextMenu/PreviewDialogContextMenu';
105
+ import YesNoQuestionComponent from './Presentation/Views/YesNoQuestion/YesNoQuestion';
106
+ export { AttachmentBubble, messageHasUrls, type FunctionTypeMessageEntityToVoid, MessageDTOMapper, getTimeShort24hFormat, TextBubble, Avatar, Badge, Button, CheckBox, DialogBanner, DialogItemPreview, DialogWindow, Dropdown, Header, Loader, MessageInput, MessageSeparator, Placeholder, PreviewFileMessage, SettingsItem, TextField, ToastProvider, UserListItem, MainButton, TypeButton, type LoginData, type AuthorizationData, QuickBloxUIKitProvider, qbDataContext, type QBDataContextType, RemoteDataSource, LocalDataSource, useQBConnection, useQbInitializedDataContext, useQbUIKitDataContext, useEventMessagesRepository, type DialogListViewModel, useDialogListViewModel, SubscribeToDialogEventsUseCase, Pagination, type DialogEventInfo, EventMessageType, NotificationTypes, stringifyError, DesktopLayout, type DialogEntity, BaseViewModel, QuickBloxUIKitDesktopLayout, DefaultTheme, type UiKitTheme, type AIMessageWidget, AISource, type IChatMessage, AIWidgetIcon, PreviewDialogViewModel, type FunctionTypeViewModelToVoid, type AvatarContentIncomingUserProps, type GetUserNameFct, type AIWidgetPlaceHolder, type QuickBloxUIKitProps, type QuickBloxUIKitDesktopLayoutProps, DefaultConfigurations, DialogType, GroupDialogEntity, PublicDialogEntity, type MessageEntity, getDateForDialog, ReplyMessagePreview, SectionList, type SectionItem, GroupChatSvg, InformationSvg, PublicChannelSvg, UserSvg, NewChatSvg, SearchSvg, ChatSvg, useQuickBloxUIKit, AIAssist, AIAssistComponent, AITranslate, AITranslateComponent, AIRephraseWidget, AIWidgetActions, ErrorMessageIcon, SliderMenu, ContextMenu, DialogHeader, DialogBackIcon, DialogInfoIcon, DropDownMenu, ItemDropDownMenu, ErrorToast, ForwardMessageFlow, InputForForwarding, ForwardMessagePreview, DialogsWithSearch, SearchComponent, DialogListItem, InputMessage, Message, OutgoingRepliedMessage, OutgoingMessage, OutgoingForwardedMessage, MessageAttachment, VideoAttachment, ImageAttachment, DefaultAttachment, AudioAttachment, IncomingRepliedMessage, IncomingMessage, MessageContentComponent, AvatarContentIncomingUser, IncomingForwardedMessage, HighLightLink, MessageContextMenu, MessageItem, SystemDateBanner, SystemMessageBanner, VoiceMessage, Dialog, DialogInfo, UsersList, UserSingle, MembersList, DialogMembersButton, DialogList, DialogListHeader, EditDialog, UserAvatar, LeaveDialogFlow, CreateNewDialogFlow, CreateDialog, InviteMembers, NotFoundContent, SingleUserWithCheckBox, PreviewDialog, PreviewDialogContextMenu, YesNoQuestionComponent, };