quickblox-react-ui-kit 0.4.6-beta.4 → 0.4.7

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 (177) hide show
  1. package/dist/CommonTypes/CommonTypes.d.ts +12 -0
  2. package/dist/Data/source/remote/RemoteDataSource.d.ts +5 -0
  3. package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.d.ts +1 -1
  4. package/dist/Presentation/Views/Flow/CreateDialog/CreateDialog.d.ts +1 -0
  5. package/dist/Presentation/ui-components/DialogItemPreview/DialogItemPreview.d.ts +3 -3
  6. package/dist/Presentation/ui-components/Header/Header.d.ts +1 -1
  7. package/dist/index-ui.d.ts +47 -3
  8. package/dist/index-ui.js +25470 -17586
  9. package/dist/index-ui.js.map +1 -1
  10. package/global.d.ts +3 -202
  11. package/package.json +1 -1
  12. package/src/App.scss +5 -0
  13. package/src/App.tsx +58 -33
  14. package/src/CommonTypes/CommonTypes.ts +13 -0
  15. package/src/Data/DefaultConfigurations.ts +4 -0
  16. package/src/Data/source/remote/RemoteDataSource.ts +210 -148
  17. package/src/Domain/use_cases/CreateDialogUseCase.ts +0 -1
  18. package/src/Domain/use_cases/ForwardMessagesUseCase.ts +0 -1
  19. package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -1
  20. package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -2
  21. package/src/Domain/use_cases/GetAllMessagesForDialog.ts +0 -1
  22. package/src/Domain/use_cases/GetAllUsersUseCase.ts +0 -1
  23. package/src/Domain/use_cases/GetDialogByIdUseCase.ts +0 -2
  24. package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +0 -1
  25. package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -1
  26. package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -1
  27. package/src/Domain/use_cases/ReplyMessagesUseCase.ts +0 -2
  28. package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -3
  29. package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -26
  30. package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -1
  31. package/src/Domain/use_cases/SyncDialogsUseCase.ts +1 -2
  32. package/src/Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase.ts +0 -2
  33. package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -2
  34. package/src/Domain/use_cases/UploadFileUseCase.ts +0 -2
  35. package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -2
  36. package/src/Domain/use_cases/ai/AIAnswerAssistUseCase.ts +0 -2
  37. package/src/Domain/use_cases/ai/AIAnswerAssistWithProxyUseCase.ts +0 -3
  38. package/src/Domain/use_cases/ai/AIAnswerAssistWithSDKUseCase.ts +0 -2
  39. package/src/Domain/use_cases/ai/AIRephraseUseCase.ts +0 -3
  40. package/src/Domain/use_cases/ai/AIRephraseWithProxyUseCase.ts +0 -3
  41. package/src/Domain/use_cases/ai/AITranslateUseCase.ts +0 -2
  42. package/src/Domain/use_cases/ai/AITranslateWithProxyUseCase.ts +0 -3
  43. package/src/Domain/use_cases/ai/AITranslateWithSDKUseCase.ts +0 -3
  44. package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +0 -1
  45. package/src/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.tsx +1 -1
  46. package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.scss +12 -6
  47. package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.tsx +4 -2
  48. package/src/Presentation/Views/Dialog/Dialog.scss +7 -1
  49. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.scss +17 -29
  50. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.tsx +8 -13
  51. package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.scss +9 -9
  52. package/src/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.scss +11 -0
  53. package/src/Presentation/Views/Dialog/MessageContextMenu/MessageContextMenu.tsx +3 -2
  54. package/src/Presentation/Views/Dialog/useDialogViewModel.ts +10 -21
  55. package/src/Presentation/Views/DialogInfo/DialogInfo.scss +19 -25
  56. package/src/Presentation/Views/DialogInfo/DialogInfo.tsx +2 -2
  57. package/src/Presentation/Views/DialogInfo/DialogMemberButton/DialogMembersButton.scss +0 -17
  58. package/src/Presentation/Views/DialogInfo/MembersList/MembersList.scss +9 -1
  59. package/src/Presentation/Views/DialogInfo/UsersList/SingleUser/SingleUser.scss +0 -1
  60. package/src/Presentation/Views/DialogInfo/UsersList/useUsersListViewModel.ts +2 -4
  61. package/src/Presentation/Views/DialogList/useDialogListViewModel.ts +0 -1
  62. package/src/Presentation/Views/EditDialog/EditDialog.scss +1 -38
  63. package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.scss +17 -42
  64. package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.tsx +45 -39
  65. package/src/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.tsx +6 -2
  66. package/src/Presentation/Views/InviteMembers/InviteMembers.scss +4 -33
  67. package/src/Presentation/Views/InviteMembers/InviteMembers.tsx +23 -4
  68. package/src/Presentation/Views/PreviewDialog/PreviewDialog.scss +8 -0
  69. package/src/Presentation/Views/PreviewDialog/PreviewDialog.tsx +8 -5
  70. package/src/Presentation/components/UI/Buttons/MainButton/MainButton.css +5 -10
  71. package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.scss +0 -5
  72. package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.scss +1 -10
  73. package/src/Presentation/layouts/TestStage/LoginView/Login.scss +6 -3
  74. package/src/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +1 -33
  75. package/src/Presentation/themes/styles/_theme_colors_scheme.scss +1 -1
  76. package/src/Presentation/themes/styles/_theme_dark.scss +5 -4
  77. package/src/Presentation/themes/styles/_theme_light.scss +3 -2
  78. package/src/Presentation/ui-components/Avatar/Avatar.scss +8 -5
  79. package/src/Presentation/ui-components/Avatar/Avatar.tsx +2 -1
  80. package/src/Presentation/ui-components/Badge/Badge.tsx +1 -0
  81. package/src/Presentation/ui-components/Button/Button.scss +5 -6
  82. package/src/Presentation/ui-components/Button/Button.tsx +7 -2
  83. package/src/Presentation/ui-components/CheckBox/CheckBox.scss +23 -0
  84. package/src/Presentation/ui-components/CheckBox/CheckBox.tsx +19 -7
  85. package/src/Presentation/ui-components/DialogBanner/DialogBanner.tsx +1 -0
  86. package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.scss +3 -3
  87. package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.tsx +3 -3
  88. package/src/Presentation/ui-components/DialogWindow/DialogWindow.scss +7 -4
  89. package/src/Presentation/ui-components/DialogWindow/DialogWindow.tsx +1 -1
  90. package/src/Presentation/ui-components/Dropdown/Dropdown.tsx +1 -1
  91. package/src/Presentation/ui-components/Dropdown/DropdownOption.tsx +2 -1
  92. package/src/Presentation/ui-components/Header/Header.scss +9 -2
  93. package/src/Presentation/ui-components/Header/Header.tsx +1 -1
  94. package/src/Presentation/ui-components/Loader/Loader.tsx +1 -0
  95. package/src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.scss +1 -0
  96. package/src/Presentation/ui-components/Message/Bubble/FileBubble/FileBubble.tsx +1 -0
  97. package/src/Presentation/ui-components/Message/Bubble/ImageBubble/ImageBubble.tsx +1 -0
  98. package/src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.scss +13 -3
  99. package/src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.tsx +1 -0
  100. package/src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.tsx +1 -0
  101. package/src/Presentation/ui-components/Message/FileUrl/FileUrl.scss +0 -3
  102. package/src/Presentation/ui-components/Message/FileUrl/FileUrl.tsx +1 -0
  103. package/src/Presentation/ui-components/Message/Message.scss +5 -1
  104. package/src/Presentation/ui-components/MessageInput/MessageInput.scss +5 -1
  105. package/src/Presentation/ui-components/MessageInput/MessageInput.tsx +1 -1
  106. package/src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.tsx +1 -1
  107. package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.scss +13 -13
  108. package/src/Presentation/ui-components/Placeholder/Placeholder.scss +5 -0
  109. package/src/Presentation/ui-components/Placeholder/Placeholder.tsx +1 -1
  110. package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss +4 -1
  111. package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx +1 -0
  112. package/src/Presentation/ui-components/SettingsItem/SettingsItem.scss +5 -1
  113. package/src/Presentation/ui-components/SettingsItem/SettingsItem.tsx +1 -1
  114. package/src/Presentation/ui-components/TextField/TextField.scss +5 -3
  115. package/src/Presentation/ui-components/Toast/Toast.scss +3 -3
  116. package/src/Presentation/ui-components/Toast/ToastProvider.tsx +2 -2
  117. package/src/Presentation/ui-components/UserListItem/UserListItem.scss +11 -3
  118. package/src/Presentation/ui-components/UserListItem/UserListItem.tsx +1 -0
  119. package/src/QBconfig.ts +2 -0
  120. package/src/hooks/useQuickBloxUIKit.ts +101 -18
  121. package/src/index-ui.ts +111 -18
  122. package/src/qb-api-calls/index.ts +52 -3
  123. package/storybook-static/{217.3c66ff1e.iframe.bundle.js → 217.07d5c7a3.iframe.bundle.js} +3 -3
  124. package/storybook-static/{217.3c66ff1e.iframe.bundle.js.map → 217.07d5c7a3.iframe.bundle.js.map} +1 -1
  125. package/storybook-static/735.6ee62079.iframe.bundle.js +2 -0
  126. package/storybook-static/{844.6041e1a5.iframe.bundle.js → 844.e8bfd664.iframe.bundle.js} +3 -3
  127. package/storybook-static/{844.6041e1a5.iframe.bundle.js.map → 844.e8bfd664.iframe.bundle.js.map} +1 -1
  128. package/storybook-static/{961.c94da456.iframe.bundle.js → 961.d47fc2bc.iframe.bundle.js} +2 -2
  129. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.a5ba7608.iframe.bundle.js +2 -0
  130. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.c8824861.iframe.bundle.js +2 -0
  131. package/storybook-static/Presentation-ui-components-Button-Button-stories.fa2aa72c.iframe.bundle.js +2 -0
  132. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.b6998344.iframe.bundle.js +2 -0
  133. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.a724643f.iframe.bundle.js +2 -0
  134. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.a03feb06.iframe.bundle.js +2 -0
  135. package/storybook-static/Presentation-ui-components-Header-Header-stories.978f0af5.iframe.bundle.js +2 -0
  136. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.4e80520d.iframe.bundle.js +2 -0
  137. package/storybook-static/Presentation-ui-components-Message-Message-stories.213a90f6.iframe.bundle.js +2 -0
  138. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.be8aa2d9.iframe.bundle.js +1 -0
  139. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.e7f5a274.iframe.bundle.js +2 -0
  140. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.969cfe2e.iframe.bundle.js +2 -0
  141. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.4f00432b.iframe.bundle.js +1 -0
  142. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.1713eab7.iframe.bundle.js +2 -0
  143. package/storybook-static/iframe.html +2 -2
  144. package/storybook-static/project.json +1 -1
  145. package/storybook-static/{runtime~main.5a7ba727.iframe.bundle.js → runtime~main.17766d00.iframe.bundle.js} +1 -1
  146. package/storybook-static/sb-manager/globals-runtime.js +1 -1
  147. package/storybook-static/735.82f96f8a.iframe.bundle.js +0 -2
  148. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.b363e9a1.iframe.bundle.js +0 -2
  149. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.85dd97b0.iframe.bundle.js +0 -2
  150. package/storybook-static/Presentation-ui-components-Button-Button-stories.1e4ae2b4.iframe.bundle.js +0 -2
  151. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.4e25a94d.iframe.bundle.js +0 -2
  152. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.e22e8be5.iframe.bundle.js +0 -2
  153. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.8321872b.iframe.bundle.js +0 -2
  154. package/storybook-static/Presentation-ui-components-Header-Header-stories.1cff200a.iframe.bundle.js +0 -2
  155. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.7391dde4.iframe.bundle.js +0 -2
  156. package/storybook-static/Presentation-ui-components-Message-Message-stories.49f0dbbf.iframe.bundle.js +0 -2
  157. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.4aa88de3.iframe.bundle.js +0 -1
  158. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.d74853ab.iframe.bundle.js +0 -2
  159. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.19812f7d.iframe.bundle.js +0 -2
  160. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.5e19f10e.iframe.bundle.js +0 -1
  161. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.d2f60e13.iframe.bundle.js +0 -2
  162. /package/storybook-static/{217.3c66ff1e.iframe.bundle.js.LICENSE.txt → 217.07d5c7a3.iframe.bundle.js.LICENSE.txt} +0 -0
  163. /package/storybook-static/{735.82f96f8a.iframe.bundle.js.LICENSE.txt → 735.6ee62079.iframe.bundle.js.LICENSE.txt} +0 -0
  164. /package/storybook-static/{844.6041e1a5.iframe.bundle.js.LICENSE.txt → 844.e8bfd664.iframe.bundle.js.LICENSE.txt} +0 -0
  165. /package/storybook-static/{961.c94da456.iframe.bundle.js.LICENSE.txt → 961.d47fc2bc.iframe.bundle.js.LICENSE.txt} +0 -0
  166. /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
  167. /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
  168. /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
  169. /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
  170. /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
  171. /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
  172. /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
  173. /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
  174. /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
  175. /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
  176. /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
  177. /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
@@ -19,7 +19,6 @@ export class SubscribeToDialogEventsUseCase extends BaseUseCase<
19
19
  eventMessagesRepository: EventMessagesRepository,
20
20
  nameSubscription: string = SubscriptionPerformer.DEFAULT_SUBSCRIPTION_NAME,
21
21
  ) {
22
- console.log('CONSTRUCTOR SubscribeToDialogsUpdatesUseCaseWithMock');
23
22
  super();
24
23
  this.callBackExecute = undefined;
25
24
 
@@ -75,19 +74,10 @@ export class SubscribeToDialogEventsUseCase extends BaseUseCase<
75
74
  }
76
75
 
77
76
  updateMessageStatusEventHandler(dialogEventInfo: DialogEventInfo): void {
78
- console.log(
79
- 'execute newDialogEventHandler in SubscribeToDialogEventsUseCase:',
80
- JSON.stringify(dialogEventInfo),
81
- );
82
-
83
77
  this.informSubscribers(dialogEventInfo);
84
78
  }
85
79
 
86
80
  newMessageEventHandler(messageEntity: MessageEntity): void {
87
- console.log(
88
- 'execute newDialogEventHandler in SubscribeToDialogEventsUseCase:',
89
- JSON.stringify(messageEntity),
90
- );
91
81
  const messageInfo: DialogEventInfo = {
92
82
  messageInfo: messageEntity,
93
83
  notificationTypes: NotificationTypes.UPDATE_DIALOG,
@@ -99,10 +89,6 @@ export class SubscribeToDialogEventsUseCase extends BaseUseCase<
99
89
  }
100
90
 
101
91
  updateDialogEventHandler(messageEntity: MessageEntity): void {
102
- console.log(
103
- 'execute updateDialogEventHandler in SubscribeToDialogEventsUseCase:',
104
- JSON.stringify(messageEntity),
105
- );
106
92
  const messageInfo: DialogEventInfo = {
107
93
  messageInfo: messageEntity,
108
94
  notificationTypes: NotificationTypes.UPDATE_DIALOG,
@@ -114,10 +100,6 @@ export class SubscribeToDialogEventsUseCase extends BaseUseCase<
114
100
  }
115
101
 
116
102
  leaveDialogEventHandler(messageEntity: MessageEntity): void {
117
- console.log(
118
- 'execute leaveDialogEventHandler in SubscribeToDialogEventsUseCase:',
119
- JSON.stringify(messageEntity),
120
- );
121
103
  const messageInfo: DialogEventInfo = {
122
104
  messageInfo: messageEntity,
123
105
  notificationTypes: NotificationTypes.DELETE_LEAVE_DIALOG,
@@ -129,10 +111,6 @@ export class SubscribeToDialogEventsUseCase extends BaseUseCase<
129
111
  }
130
112
 
131
113
  removeUserDialogEventHandler(messageEntity: MessageEntity): void {
132
- console.log(
133
- 'execute removeUserDialogEventHandler in SubscribeToDialogEventsUseCase:',
134
- JSON.stringify(messageEntity),
135
- );
136
114
  const messageInfo: DialogEventInfo = {
137
115
  messageInfo: messageEntity,
138
116
  notificationTypes: NotificationTypes.REMOVE_USER,
@@ -144,10 +122,6 @@ export class SubscribeToDialogEventsUseCase extends BaseUseCase<
144
122
  }
145
123
 
146
124
  newDialogEventHandler(messageEntity: MessageEntity): void {
147
- console.log(
148
- 'execute newDialogEventHandler in SubscribeToDialogEventsUseCase:',
149
- JSON.stringify(messageEntity),
150
- );
151
125
  const messageInfo: DialogEventInfo = {
152
126
  messageInfo: messageEntity,
153
127
  notificationTypes: NotificationTypes.NEW_DIALOG,
@@ -14,7 +14,6 @@ export class SubscribeToDialogsUpdatesUseCase extends BaseUseCase<
14
14
  private dialogs: Array<DialogEntity> = [];
15
15
 
16
16
  constructor(dialogRepository: DialogsRepository) {
17
- console.log('CONSTRUCTOR SubscribeToDialogsUpdatesUseCase');
18
17
  super();
19
18
  this.callBackExecute = undefined;
20
19
 
@@ -19,7 +19,7 @@ export class SyncDialogsUseCase extends BaseUseCase<boolean, boolean> {
19
19
 
20
20
  private timer2Id: NodeJS.Timer | undefined;
21
21
 
22
- private timerId: NodeJS.Timer | undefined;
22
+ private timerId: NodeJS.Timer | undefined | null = null;
23
23
 
24
24
  constructor(
25
25
  dialogRepository: DialogsRepository,
@@ -27,7 +27,6 @@ export class SyncDialogsUseCase extends BaseUseCase<boolean, boolean> {
27
27
  eventMessagesRepository: EventMessagesRepository,
28
28
  ) {
29
29
  super();
30
- console.log('CONSTRUCTOR SyncDialogsUseCaseWithMock');
31
30
  this.callBackExecute = undefined;
32
31
 
33
32
  this.dialogRepository = dialogRepository;
@@ -18,14 +18,12 @@ export class UpdateCurrentDialogInDataSourceUseCase
18
18
  updateDialog: GroupDialogEntity,
19
19
  qbConfig: QBUIKitConfig,
20
20
  ) {
21
- console.log('CONSTRUCTOR UpdateCurrentDialogInDataSourceUseCase');
22
21
  this.dialogRepository = dialogRepository;
23
22
  this.updateDialog = updateDialog;
24
23
  this.qbConfig = qbConfig;
25
24
  }
26
25
 
27
26
  async execute(): Promise<DialogEntity> {
28
- console.log('execute UpdateCurrentDialogInDataSourceUseCase');
29
27
  const result: DialogEntity =
30
28
  await this.dialogRepository.updateCurrentDialogInLocalDataSource(
31
29
  this.updateDialog,
@@ -22,7 +22,6 @@ export class UpdateDialogUseCase implements IUseCase<void, DialogEntity> {
22
22
  updateDialog: GroupDialogEntity,
23
23
  textInformationMessage: string,
24
24
  ) {
25
- console.log('CONSTRUCTOR UpdateDialogUseCase');
26
25
  this.dialogRepository = dialogRepository;
27
26
  this.updateDialog = updateDialog;
28
27
  this.eventMessagesRepository = eventMessagesRepository;
@@ -30,7 +29,6 @@ export class UpdateDialogUseCase implements IUseCase<void, DialogEntity> {
30
29
  }
31
30
 
32
31
  async execute(): Promise<DialogEntity> {
33
- console.log('execute UpdateDialogUseCase');
34
32
  const result: DialogEntity =
35
33
  await this.dialogRepository.updateDialogInRemote(this.updateDialog);
36
34
 
@@ -8,13 +8,11 @@ export class UploadFileUseCase implements IUseCase<void, FileEntity> {
8
8
  private fileEntity: FileEntity;
9
9
 
10
10
  constructor(fileRepository: FileRepository, fileEntity: FileEntity) {
11
- console.log('CONSTRUCTOR UploadFileUseCase');
12
11
  this.fileRepository = fileRepository;
13
12
  this.fileEntity = fileEntity;
14
13
  }
15
14
 
16
15
  async execute(): Promise<FileEntity> {
17
- console.log('execute UploadFileUseCase');
18
16
  const result: FileEntity = await this.fileRepository.saveFileInRemote(
19
17
  this.fileEntity,
20
18
  );
@@ -20,14 +20,12 @@ export class UserTypingMessageUseCase implements IUseCase<void, void> {
20
20
  dialog: DialogEntity,
21
21
  senderId: number,
22
22
  ) {
23
- console.log('CONSTRUCTOR SendUserIsTypingMessageUseCase');
24
23
  this.messagesRepository = messagesRepository;
25
24
  this.dialog = dialog;
26
25
  this.senderId = senderId;
27
26
  }
28
27
 
29
28
  async execute(): Promise<void> {
30
- console.log('execute SendUserIsTypingMessageUseCase');
31
29
  this._typingTime = Date.now();
32
30
  if (!this._typingTimer) {
33
31
  await this.messagesRepository.typingMessageStart(
@@ -27,7 +27,6 @@ export class AIAnswerAssistUseCase implements IUseCase<void, string> {
27
27
  sessionToken: string,
28
28
  openAIModel = 'gpt-3.5-turbo',
29
29
  ) {
30
- console.log('CONSTRUCTOR AIRephraseUseCase');
31
30
  this.api = api;
32
31
  this.openAIModel = openAIModel;
33
32
  this.port = port;
@@ -38,7 +37,6 @@ export class AIAnswerAssistUseCase implements IUseCase<void, string> {
38
37
  }
39
38
 
40
39
  async execute(): Promise<string> {
41
- console.log('execute AIRephraseUseCase');
42
40
  const settings =
43
41
  QBAIAnswerAssistant.createDefaultAIAnswerAssistantSettings();
44
42
 
@@ -27,7 +27,6 @@ export class AIAnswerAssistWithProxyUseCase implements IUseCase<void, string> {
27
27
  sessionToken: string,
28
28
  openAIModel = 'gpt-3.5-turbo',
29
29
  ) {
30
- console.log('CONSTRUCTOR AIRephraseUseCase');
31
30
  this.api = api;
32
31
  this.openAIModel = openAIModel;
33
32
  this.port = port;
@@ -38,8 +37,6 @@ export class AIAnswerAssistWithProxyUseCase implements IUseCase<void, string> {
38
37
  }
39
38
 
40
39
  async execute(): Promise<string> {
41
- console.log('execute AIRephraseUseCase');
42
-
43
40
  const settings =
44
41
  QBAIAnswerAssistant.createDefaultAIAnswerAssistantSettings();
45
42
 
@@ -22,7 +22,6 @@ export class AIAnswerAssistWithSDKUseCase implements IUseCase<void, string> {
22
22
  dataSource: IRemoteDataSource,
23
23
  smartChatAssistantId: string,
24
24
  ) {
25
- console.log('CONSTRUCTOR AIAnswerAssistWithSDKUseCase');
26
25
  this.textToSend = textToSend;
27
26
  this.dialogMessages = dialogMessages;
28
27
  this.dataSource = dataSource;
@@ -30,7 +29,6 @@ export class AIAnswerAssistWithSDKUseCase implements IUseCase<void, string> {
30
29
  }
31
30
 
32
31
  async execute(): Promise<string> {
33
- console.log('execute AIAnswerAssistWithSDKUseCase');
34
32
  const history: AIChatMessage[] = this.dialogMessages.map(
35
33
  (msg: IChatMessage) => {
36
34
  return {
@@ -31,7 +31,6 @@ export class AIRephraseUseCase implements IUseCase<void, string> {
31
31
  sessionToken: string,
32
32
  openAIModel = 'gpt-3.5-turbo',
33
33
  ) {
34
- console.log('CONSTRUCTOR AIRephraseUseCase');
35
34
  this.api = api;
36
35
  this.openAIModel = openAIModel;
37
36
  this.port = port;
@@ -43,8 +42,6 @@ export class AIRephraseUseCase implements IUseCase<void, string> {
43
42
  }
44
43
 
45
44
  async execute(): Promise<string> {
46
- console.log('execute AIRephraseUseCase');
47
-
48
45
  const settings = QBAIRephrase.createDefaultAIRephraseSettings();
49
46
 
50
47
  settings.apiKey = this.sessionToken;
@@ -31,7 +31,6 @@ export class AIRephraseWithProxyUseCase implements IUseCase<void, string> {
31
31
  sessionToken: string,
32
32
  openAIModel = 'gpt-3.5-turbo',
33
33
  ) {
34
- console.log('CONSTRUCTOR AIRephraseUseCase');
35
34
  this.api = api;
36
35
  this.openAIModel = openAIModel;
37
36
  this.port = port;
@@ -43,8 +42,6 @@ export class AIRephraseWithProxyUseCase implements IUseCase<void, string> {
43
42
  }
44
43
 
45
44
  async execute(): Promise<string> {
46
- console.log('execute AIRephraseUseCase');
47
-
48
45
  const settings = QBAIRephrase.createDefaultAIRephraseSettings();
49
46
 
50
47
  settings.token = this.sessionToken;
@@ -29,7 +29,6 @@ export class AITranslateUseCase implements IUseCase<void, string> {
29
29
  sessionToken: string,
30
30
  openAIModel = 'gpt-3.5-turbo',
31
31
  ) {
32
- console.log('CONSTRUCTOR AIRephraseUseCase');
33
32
  this.api = api;
34
33
  this.openAIModel = openAIModel;
35
34
  this.port = port;
@@ -41,7 +40,6 @@ export class AITranslateUseCase implements IUseCase<void, string> {
41
40
  }
42
41
 
43
42
  async execute(): Promise<string> {
44
- console.log('execute AIRephraseUseCase');
45
43
  const settings: AITranslateSettings =
46
44
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call
47
45
  QBAITranslate.createDefaultAITranslateSettings();
@@ -30,7 +30,6 @@ export class AITranslateWithProxyUseCase implements IUseCase<void, string> {
30
30
  sessionToken: string,
31
31
  openAIModel = 'gpt-3.5-turbo',
32
32
  ) {
33
- console.log('CONSTRUCTOR AIRephraseUseCase');
34
33
  this.api = api;
35
34
  this.openAIModel = openAIModel;
36
35
  this.port = port;
@@ -42,8 +41,6 @@ export class AITranslateWithProxyUseCase implements IUseCase<void, string> {
42
41
  }
43
42
 
44
43
  async execute(): Promise<string> {
45
- console.log('execute AIRephraseUseCase');
46
-
47
44
  const settings: AITranslateSettings =
48
45
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call
49
46
  QBAITranslate.createDefaultAITranslateSettings();
@@ -82,7 +82,6 @@ export class AITranslateWithSDKUseCase implements IUseCase<void, string> {
82
82
  dataSource: IRemoteDataSource,
83
83
  smartChatAssistantId: string,
84
84
  ) {
85
- console.log('CONSTRUCTOR AITranslateWithSDKUseCase');
86
85
  this.dataSource = dataSource;
87
86
  this.textToSend = textToSend;
88
87
  this.language = language;
@@ -94,8 +93,6 @@ export class AITranslateWithSDKUseCase implements IUseCase<void, string> {
94
93
  }
95
94
 
96
95
  async execute(): Promise<string> {
97
- console.log('execute AITranslateWithSDKUseCase');
98
-
99
96
  const response: AIAnswerResponse = await this.dataSource.translate(
100
97
  this.textToSend,
101
98
  this.getLanguageCode(this.language),
@@ -50,7 +50,6 @@ export class SubscriptionPerformer<TArg> implements ISubscribable<TArg> {
50
50
  }
51
51
 
52
52
  constructor() {
53
- console.log('CONSTRUCTOR SubscriptionPerformer');
54
53
  // this.onEventByTypeSubscribers[EventMessageType.LocalMessage] = [];
55
54
  this.onEventByTypeSubscribers[EventMessageType.LocalMessage] =
56
55
  this.subscribers;
@@ -132,7 +132,7 @@ const AIRephraseWidget: React.FC<AIRephraseWidgetProps> = ({
132
132
  });
133
133
  }
134
134
  //
135
- items.push({
135
+ items.unshift({
136
136
  title: 'Back to prev.',
137
137
  icon: <WhiteCheckMarkIcon />,
138
138
  action: () => {
@@ -4,18 +4,18 @@
4
4
  }
5
5
  .dropdown-context-menu-tone {
6
6
  position: absolute;
7
- bottom: -15px;
7
+ bottom: 25px;
8
8
  right: 0;
9
9
  zIndex: 1;
10
10
  width: max-content;
11
11
  height: max-content;
12
12
 
13
- background: var(--primary-primary-a-100, #ffffff);
13
+ background: var(--main-background, #ffffff);
14
14
  border-radius: 4px;
15
- padding: 8px 0px 8px 0px;
15
+ padding: 8px 0 8px 0;
16
16
 
17
- box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.04),
18
- 0px 3px 14px 0px rgba(0, 0, 0, 0.08), 0px 8px 10px 0px rgba(0, 0, 0, 0.12);
17
+ box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.04),
18
+ 0 3px 14px 0 rgba(0, 0, 0, 0.08), 0 8px 10px 0 rgba(0, 0, 0, 0.12);
19
19
 
20
20
  }
21
21
 
@@ -31,7 +31,7 @@
31
31
  }
32
32
 
33
33
  .dropdown-context-menu-tone-menu-item-title {
34
- color: var(--secondary-secondary-900, #0b121b);
34
+ color: var(--main-text, #0b121b);
35
35
  text-align: left;
36
36
  font: var(--body-body-medium, 400 14px/20px "Roboto", sans-serif);
37
37
  position: relative;
@@ -53,3 +53,9 @@
53
53
  height: 24px;
54
54
  position: relative;
55
55
  }
56
+
57
+ .ai-widget-actions-render {
58
+ display: flex;
59
+ align-items: center;
60
+ padding-right: 8px;
61
+ }
@@ -17,7 +17,7 @@ type ContextMenuProps = {
17
17
 
18
18
  const ContextMenuStyles: { [key: string]: CSSProperties } = {
19
19
  contextMenuIcon: {
20
- display: 'inline-block',
20
+ // display: 'inline-block',
21
21
  position: 'relative',
22
22
  maxWidth: '42px',
23
23
  maxHeight: '42px',
@@ -84,7 +84,9 @@ function AIWidgetActions({
84
84
 
85
85
  return (
86
86
  <div style={ContextMenuStyles.contextMenuIcon}>
87
- <div onClick={handleClick}>{widgetToRender || <EditDots />}</div>
87
+ <div className="ai-widget-actions-render" onClick={handleClick}>
88
+ {widgetToRender || <EditDots />}
89
+ </div>
88
90
  {menuVisible && (
89
91
  // <div ref={contextMenuRef} style={ContextMenuStyles.contextMenuContent}>
90
92
  <div
@@ -26,7 +26,13 @@ $message-view-container-ai-translate-text-color: var(--tertiary-elements);
26
26
  &--header{
27
27
  min-height: $message-view-container-header-min-height;
28
28
  max-height: $message-view-container-header-min-height;
29
- width: 100%
29
+ width: 100%;
30
+
31
+ .dialog-header{
32
+ &__title {
33
+ font: var(--title-title-medium);
34
+ }
35
+ }
30
36
  }
31
37
  &--information{
32
38
  background-color: $message-view-container-information-background-color;
@@ -11,7 +11,7 @@
11
11
  align-items: center;
12
12
  justify-content: flex-start;
13
13
  flex-shrink: 0;
14
- width: 270px;
14
+ //width: 270px;
15
15
  position: relative;
16
16
 
17
17
  }
@@ -20,22 +20,15 @@
20
20
  width: 40px;
21
21
  height: 40px;
22
22
  position: relative;
23
- }
24
- .dialog-item-element-avatar-rectangle {
25
- width: 40px;
26
- height: 40px;
27
- position: absolute;
28
- left: 0px;
29
- top: 0px;
30
- }
31
- .dialog-item-element-avatar-ellipse {
32
- background: var(--disabled-elements, #bcc1c5);
23
+
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: center;
27
+ overflow: hidden;
33
28
  border-radius: 50%;
34
- width: 40px;
35
- height: 40px;
36
- position: absolute;
37
- left: 0px;
38
- top: 0px;
29
+ background-color: var(--disabled-elements);
30
+ color: var(--secondary-text);
31
+
39
32
  }
40
33
  .contents-user {
41
34
  position: absolute;
@@ -52,20 +45,15 @@
52
45
  display: flex;
53
46
  align-items: center;
54
47
  justify-content: flex-start;
48
+ white-space: nowrap;
49
+ overflow: hidden;
50
+ text-overflow: ellipsis;
51
+ width: 200px;
52
+ @media (max-width: 767px) {
53
+ width: 120px;
54
+ }
55
55
  }
56
- .dialog-item-element-checkbox {
57
- border-radius: 4px;
58
- padding: 4px;
59
- display: flex;
60
- flex-direction: row;
61
- gap: 0px;
62
- align-items: center;
63
- justify-content: center;
64
- flex-shrink: 0;
65
- width: 32px;
66
- height: 32px;
67
- position: relative;
68
- }
56
+
69
57
  .toggle-check-on {
70
58
  align-self: stretch;
71
59
  flex: 1;
@@ -1,5 +1,4 @@
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';
5
4
  import User from '../../../../../components/UI/svgs/Icons/Contents/User';
@@ -7,6 +6,8 @@ import GroupChat from '../../../../../components/UI/svgs/Icons/Contents/GroupCha
7
6
  import PublicChannel from '../../../../../components/UI/svgs/Icons/Contents/PublicChannel';
8
7
  import UserAvatar from '../../../../EditDialog/UserAvatar/UserAvatar';
9
8
  import { IconTheme } from '../../../../../components/UI/svgs/Icons/IconsCommonTypes';
9
+ import CheckBox from '../../../../../ui-components/CheckBox/CheckBox';
10
+ import './DialogListItem.scss';
10
11
 
11
12
  type DialogListItemProps = {
12
13
  name: string;
@@ -74,21 +75,15 @@ const DialogListItem: React.FC<DialogListItemProps> = ({
74
75
  }: DialogListItemProps) => {
75
76
  return (
76
77
  <div className="dialog-item-element">
77
- <div className="item-element-avatar">
78
- <div className="item-element-avatar-rectangle" />
79
- <div className="item-element-avatar-ellipse" />
78
+ <div className="dialog-item-element-avatar">
80
79
  {renderAvatar(avatar, typeDialog)}
81
80
  </div>
82
81
  <div className="dialog-item-element-subtitle">{name}</div>
83
- <div className="dialog-item-element-checkbox">
84
- <input
85
- type="checkbox"
86
- checked={checked}
87
- onChange={() => {
88
- onSelect(id);
89
- }}
90
- />
91
- </div>
82
+ <CheckBox
83
+ onChange={() => onSelect(id)}
84
+ disabled={false}
85
+ checked={checked}
86
+ />
92
87
  </div>
93
88
  );
94
89
  };
@@ -33,7 +33,7 @@
33
33
  }
34
34
  .active-tab-button {
35
35
  border-style: solid;
36
- border-color: var(--light-theme-mainelements, #3978fc);
36
+ border-color: var(--main-elements, #3978fc);
37
37
  border-width: 0px 0px 3px 0px;
38
38
  padding: 8px 16px 8px 16px;
39
39
  display: flex;
@@ -46,7 +46,7 @@
46
46
  position: relative;
47
47
  }
48
48
  .active-tab-button-content {
49
- color: var(--light-theme-mainelements, #3978fc);
49
+ color: var(--main-elements, #3978fc);
50
50
  text-align: left;
51
51
  font: var(--button-default, 700 14px/16px "Roboto", sans-serif);
52
52
  position: relative;
@@ -64,7 +64,7 @@
64
64
  cursor: pointer;
65
65
  }
66
66
  .no-active-tab-button-content {
67
- color: var(--light-theme-tertiaryelements, #636d78);
67
+ color: var(--tertiary-elements, #636d78);
68
68
  text-align: left;
69
69
  font: var(--button-default, 700 14px/16px "Roboto", sans-serif);
70
70
  position: relative;
@@ -76,10 +76,10 @@
76
76
  overflow: visible;
77
77
  }
78
78
  .forward-message-flow-message-input {
79
- background: var(--light-theme-mainbackground, #ffffff);
79
+ background: var(--main-background);
80
80
  display: flex;
81
81
  flex-direction: column;
82
- gap: 0px;
82
+ gap: 0;
83
83
  align-items: flex-start;
84
84
  justify-content: center;
85
85
  align-self: stretch;
@@ -108,7 +108,7 @@
108
108
  .caption {
109
109
  display: flex;
110
110
  flex-direction: row;
111
- gap: 0px;
111
+ gap: 0;
112
112
  align-items: flex-start;
113
113
  justify-content: flex-start;
114
114
  flex-shrink: 0;
@@ -127,7 +127,7 @@
127
127
  border-radius: 4px;
128
128
  display: flex;
129
129
  flex-direction: row;
130
- gap: 0px;
130
+ gap: 0;
131
131
  align-items: center;
132
132
  justify-content: center;
133
133
  flex-shrink: 0;
@@ -142,13 +142,13 @@
142
142
  overflow: visible;
143
143
  }
144
144
  .forwarded-from-name {
145
- color: var(--light-theme-tertiaryelements, #636d78);
145
+ color: var(--tertiary-elements, #636d78);
146
146
  text-align: left;
147
147
  font: var(--label-label-medium, 500 12px/16px "Roboto", sans-serif);
148
148
  position: relative;
149
149
  }
150
150
  .i-like-you-new-presentation-style-it-s-very {
151
- color: var(--light-theme-maintext, #0b1b0f);
151
+ color: var(--main-text, #0b1b0f);
152
152
  text-align: center;
153
153
  font: var(--body-body-large, 400 16px/24px "Roboto", sans-serif);
154
154
  position: relative;
@@ -25,6 +25,15 @@
25
25
  justify-content: flex-start;
26
26
  flex: 1;
27
27
  position: relative;
28
+
29
+ textarea {
30
+ overflow: auto;
31
+ scrollbar-width: none;
32
+ }
33
+
34
+ textarea::-webkit-scrollbar {
35
+ display: none;
36
+ }
28
37
  }
29
38
  .forwarding-message-input-input-type-message {
30
39
  color: var(--main-text, #636d78);
@@ -43,6 +52,8 @@
43
52
  height: 26px;
44
53
  min-height: 26px;
45
54
  max-height: 26px;
55
+
56
+
46
57
  }
47
58
 
48
59
  .forwarding-message-input-icon-send {
@@ -57,7 +57,8 @@ export default function MessageContextMenu({
57
57
  }
58
58
 
59
59
  return (
60
- <div>
60
+ // eslint-disable-next-line react/jsx-no-useless-fragment
61
+ <>
61
62
  {enableForwarding || enableReplying ? (
62
63
  <Dropdown
63
64
  options={options}
@@ -73,6 +74,6 @@ export default function MessageContextMenu({
73
74
  <MoreSvg className="message-context-menu-actions__icon" />
74
75
  </div>
75
76
  )}
76
- </div>
77
+ </>
77
78
  );
78
79
  }