quickblox-react-ui-kit 0.3.0-beta.1 → 0.3.0-beta.3

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 (357) hide show
  1. package/.storybook/main.ts +26 -0
  2. package/.storybook/preview.ts +16 -0
  3. package/README.md +5 -1
  4. package/dist/Data/repository/DialogsRepository.d.ts +1 -0
  5. package/dist/Data/source/remote/IRemoteDataSource.d.ts +1 -0
  6. package/dist/Data/source/remote/RemoteDataSource.d.ts +2 -0
  7. package/dist/Domain/entity/DialogEventInfo.d.ts +4 -0
  8. package/dist/Domain/use_cases/GetAllMessagesForDialog.d.ts +3 -3
  9. package/dist/Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase.d.ts +10 -0
  10. package/dist/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.d.ts +16 -0
  11. package/dist/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.d.ts +20 -0
  12. package/dist/Presentation/Views/Dialog/DialogViewModel.d.ts +2 -0
  13. package/dist/Presentation/Views/Dialog/MessageItem/MessageItem.d.ts +22 -0
  14. package/dist/Presentation/Views/DialogInfo/DialogInfo.d.ts +1 -2
  15. package/dist/Presentation/Views/DialogList/DialogList.d.ts +5 -3
  16. package/dist/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.d.ts +3 -0
  17. package/dist/Presentation/Views/YesNoQuestion/YesNoQuestion.d.ts +0 -1
  18. package/dist/Presentation/ui-components/Message/Message.d.ts +3 -3
  19. package/dist/Presentation/ui-components/Message/Message.stories.d.ts +0 -1
  20. package/dist/Presentation/ui-components/MessageInput/MessageInput.stories.d.ts +4 -4
  21. package/dist/Presentation/ui-components/Placeholder/Placeholder.d.ts +2 -2
  22. package/dist/Presentation/ui-components/UserListItem/UserListItem.d.ts +11 -0
  23. package/dist/Presentation/ui-components/UserListItem/UserListItem.stories.d.ts +86 -0
  24. package/dist/Presentation/ui-components/index.d.ts +6 -0
  25. package/dist/hooks/useModal.d.ts +5 -0
  26. package/dist/index-ui.js +1924 -2183
  27. package/dist/index-ui.js.map +1 -1
  28. package/dist/qb-api-calls/index.d.ts +1 -0
  29. package/package.json +1 -1
  30. package/src/App.tsx +2 -2
  31. package/src/Data/DefaultConfigurations.ts +4 -4
  32. package/src/Data/repository/DialogsRepository.ts +16 -0
  33. package/src/Data/source/remote/IRemoteDataSource.ts +2 -0
  34. package/src/Data/source/remote/RemoteDataSource.ts +89 -10
  35. package/src/Domain/entity/DialogEventInfo.ts +4 -0
  36. package/src/Domain/use_cases/GetAllMessagesForDialog.ts +3 -3
  37. package/src/Domain/use_cases/GetDialogByIdUseCase.ts +5 -1
  38. package/src/Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase.ts +31 -0
  39. package/src/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.tsx +64 -0
  40. package/src/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.tsx +117 -0
  41. package/src/Presentation/Views/Dialog/Dialog.tsx +0 -22
  42. package/src/Presentation/Views/Dialog/DialogViewModel.ts +2 -0
  43. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogsWithSearch.scss +10 -0
  44. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogsWithSearch.tsx +12 -13
  45. package/src/Presentation/{ui-components/Message → Views/Dialog}/MessageContextMenu/MessageContextMenu.tsx +2 -2
  46. package/src/Presentation/{ui-components → Views/Dialog}/MessageItem/MessageItem.scss +1 -2
  47. package/src/Presentation/Views/Dialog/MessageItem/MessageItem.tsx +372 -0
  48. package/src/Presentation/Views/Dialog/useDialogViewModel.ts +65 -32
  49. package/src/Presentation/Views/DialogInfo/DialogInfo.scss +17 -11
  50. package/src/Presentation/Views/DialogInfo/DialogInfo.tsx +115 -120
  51. package/src/Presentation/Views/DialogInfo/MembersList/MembersList.scss +8 -99
  52. package/src/Presentation/Views/DialogInfo/MembersList/MembersList.tsx +9 -29
  53. package/src/Presentation/Views/DialogInfo/UsersList/UsersList.tsx +8 -6
  54. package/src/Presentation/Views/DialogInfo/UsersList/useUsersListViewModel.ts +3 -1
  55. package/src/Presentation/Views/DialogList/DialogList.scss +19 -5
  56. package/src/Presentation/Views/DialogList/DialogList.tsx +91 -56
  57. package/src/Presentation/Views/DialogList/useDialogListViewModel.ts +111 -27
  58. package/src/Presentation/Views/EditDialog/EditDialog.scss +7 -46
  59. package/src/Presentation/Views/EditDialog/EditDialog.tsx +50 -67
  60. package/src/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.tsx +10 -19
  61. package/src/Presentation/Views/Flow/LeaveDialogFlow/LeaveDialogFlow.tsx +0 -11
  62. package/src/Presentation/Views/InviteMembers/InviteMembers.scss +61 -16
  63. package/src/Presentation/Views/InviteMembers/InviteMembers.tsx +53 -78
  64. package/src/Presentation/Views/PreviewDialog/PreviewDialog.scss +5 -1
  65. package/src/Presentation/Views/PreviewDialog/PreviewDialog.tsx +1 -0
  66. package/src/Presentation/Views/YesNoQuestion/YesNoQuestion.tsx +6 -18
  67. package/src/Presentation/icons/media/video-file.svg +2 -2
  68. package/src/Presentation/layouts/Desktop/DesktopLayout.scss +24 -8
  69. package/src/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +233 -200
  70. package/src/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +1 -2
  71. package/src/Presentation/ui-components/Avatar/avatar.stories.tsx +1 -1
  72. package/src/Presentation/ui-components/Badge/Badge.stories.ts +1 -1
  73. package/src/Presentation/ui-components/Button/Button.stories.ts +1 -1
  74. package/src/Presentation/ui-components/DialogBanner/DialogBanner.stories.ts +2 -1
  75. package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.stories.tsx +29 -1
  76. package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.tsx +4 -1
  77. package/src/Presentation/ui-components/DialogWindow/DialogWindow.scss +5 -0
  78. package/src/Presentation/ui-components/DialogWindow/DialogWindow.stories.tsx +2 -1
  79. package/src/Presentation/ui-components/Dropdown/Dropdown.stories.tsx +6 -4
  80. package/src/Presentation/ui-components/Dropdown/Dropdown.tsx +10 -2
  81. package/src/Presentation/ui-components/Header/Header.stories.tsx +2 -1
  82. package/src/Presentation/ui-components/Loader/Loader.stories.ts +2 -2
  83. package/src/Presentation/ui-components/Loader/Loader.tsx +1 -1
  84. package/src/Presentation/ui-components/Message/Bubble/AttachmentBubble/AttachmentBubble.tsx +13 -2
  85. package/src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.scss +13 -0
  86. package/src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.tsx +16 -2
  87. package/src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.scss +9 -0
  88. package/src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.tsx +15 -17
  89. package/src/Presentation/ui-components/Message/Message.scss +0 -7
  90. package/src/Presentation/ui-components/Message/Message.stories.tsx +103 -36
  91. package/src/Presentation/ui-components/Message/Message.tsx +5 -5
  92. package/src/Presentation/ui-components/Message/TimeAndStatus/TimeAndStatus.scss +1 -4
  93. package/src/Presentation/ui-components/MessageInput/MessageInput.stories.tsx +16 -8
  94. package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.scss +0 -1
  95. package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.stories.ts +3 -1
  96. package/src/Presentation/ui-components/Placeholder/Placeholder.scss +1 -1
  97. package/src/Presentation/ui-components/Placeholder/Placeholder.stories.tsx +4 -8
  98. package/src/Presentation/ui-components/Placeholder/Placeholder.tsx +10 -4
  99. package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.stories.ts +12 -1
  100. package/src/Presentation/ui-components/SettingsItem/SettingsItem.stories.tsx +5 -1
  101. package/src/Presentation/ui-components/TextField/TextField.scss +1 -0
  102. package/src/Presentation/ui-components/TextField/TextField.stories.ts +7 -2
  103. package/src/Presentation/ui-components/Toast/Toast.scss +2 -3
  104. package/src/Presentation/ui-components/Toast/Toast.stories.tsx +1 -1
  105. package/src/Presentation/ui-components/Toast/ToastProvider.tsx +0 -1
  106. package/src/Presentation/ui-components/UserListItem/UserListItem.scss +33 -0
  107. package/src/Presentation/ui-components/UserListItem/UserListItem.stories.tsx +130 -0
  108. package/src/Presentation/ui-components/UserListItem/UserListItem.tsx +43 -0
  109. package/src/Presentation/ui-components/index.ts +6 -0
  110. package/src/QBconfig.ts +4 -4
  111. package/src/hooks/useModal.ts +13 -0
  112. package/src/index.scss +0 -2
  113. package/src/qb-api-calls/index.ts +1 -0
  114. package/storybook-static/426.be971fb5.iframe.bundle.js +157 -0
  115. package/storybook-static/426.be971fb5.iframe.bundle.js.map +1 -0
  116. package/storybook-static/433.dffc897e.iframe.bundle.js +1 -0
  117. package/storybook-static/603.4cf0423b.iframe.bundle.js +1 -0
  118. package/storybook-static/607.b04b9f0b.iframe.bundle.js +1 -0
  119. package/storybook-static/729.734b4ae4.iframe.bundle.js +1 -0
  120. package/storybook-static/758.e75a5a47.iframe.bundle.js +14 -0
  121. package/storybook-static/758.e75a5a47.iframe.bundle.js.map +1 -0
  122. package/storybook-static/768.e44c05aa.iframe.bundle.js +351 -0
  123. package/storybook-static/768.e44c05aa.iframe.bundle.js.map +1 -0
  124. package/storybook-static/797.b3873e04.iframe.bundle.js +1 -0
  125. package/storybook-static/926.f5308089.iframe.bundle.js +508 -0
  126. package/storybook-static/926.f5308089.iframe.bundle.js.map +1 -0
  127. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.cf806856.iframe.bundle.js +1 -0
  128. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.9449e470.iframe.bundle.js +14 -0
  129. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.9449e470.iframe.bundle.js.map +1 -0
  130. package/storybook-static/Presentation-ui-components-Button-Button-stories.4fac7996.iframe.bundle.js +1 -0
  131. package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.fa91d2c7.iframe.bundle.js +10 -0
  132. package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.fa91d2c7.iframe.bundle.js.map +1 -0
  133. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.90aa44c5.iframe.bundle.js +1 -0
  134. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.3523a670.iframe.bundle.js +1 -0
  135. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.aacf2ec2.iframe.bundle.js +1 -0
  136. package/storybook-static/Presentation-ui-components-Header-Header-stories.073c4507.iframe.bundle.js +1 -0
  137. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.9bf3fb63.iframe.bundle.js +1 -0
  138. package/storybook-static/Presentation-ui-components-Message-Message-stories.343dfae0.iframe.bundle.js +1 -0
  139. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.262a0cf2.iframe.bundle.js +1 -0
  140. package/storybook-static/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.a7d43c0b.iframe.bundle.js +10 -0
  141. package/storybook-static/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.a7d43c0b.iframe.bundle.js.map +1 -0
  142. package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.871f508c.iframe.bundle.js +1 -0
  143. package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.1661d95b.iframe.bundle.js +1 -0
  144. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.8f6fca84.iframe.bundle.js +1 -0
  145. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.4a2eef3e.iframe.bundle.js +1 -0
  146. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.55e63162.iframe.bundle.js +1 -0
  147. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.04d3eefe.iframe.bundle.js +1 -0
  148. package/storybook-static/docs-Introduction-mdx.ac401482.iframe.bundle.js +10 -0
  149. package/storybook-static/docs-Introduction-mdx.ac401482.iframe.bundle.js.map +1 -0
  150. package/storybook-static/docs-Styling-mdx.1d6c1212.iframe.bundle.js +10 -0
  151. package/storybook-static/docs-Styling-mdx.1d6c1212.iframe.bundle.js.map +1 -0
  152. package/storybook-static/favicon.ico +0 -0
  153. package/storybook-static/favicon.svg +7 -0
  154. package/storybook-static/iframe.html +355 -0
  155. package/storybook-static/index.html +131 -0
  156. package/storybook-static/index.json +1 -0
  157. package/storybook-static/logo192.png +0 -0
  158. package/storybook-static/logo512.png +0 -0
  159. package/storybook-static/main.597d432b.iframe.bundle.js +1 -0
  160. package/storybook-static/manifest.json +25 -0
  161. package/storybook-static/project.json +1 -0
  162. package/storybook-static/quickblox.js +54609 -0
  163. package/storybook-static/robots.txt +3 -0
  164. package/storybook-static/runtime~main.e945879b.iframe.bundle.js +1 -0
  165. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
  166. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  167. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
  168. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  169. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +63 -0
  170. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +18 -0
  171. package/storybook-static/sb-addons/essentials-measure-5/manager-bundle.js +3 -0
  172. package/storybook-static/sb-addons/essentials-measure-5/manager-bundle.js.LEGAL.txt +0 -0
  173. package/storybook-static/sb-addons/essentials-outline-6/manager-bundle.js +3 -0
  174. package/storybook-static/sb-addons/essentials-outline-6/manager-bundle.js.LEGAL.txt +0 -0
  175. package/storybook-static/sb-addons/essentials-toolbars-4/manager-bundle.js +3 -0
  176. package/storybook-static/sb-addons/essentials-toolbars-4/manager-bundle.js.LEGAL.txt +0 -0
  177. package/storybook-static/sb-addons/interactions-8/manager-bundle.js +12 -0
  178. package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
  179. package/storybook-static/sb-addons/links-0/manager-bundle.js +3 -0
  180. package/storybook-static/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
  181. package/storybook-static/sb-addons/onboarding-7/manager-bundle.js +503 -0
  182. package/storybook-static/sb-addons/onboarding-7/manager-bundle.js.LEGAL.txt +48 -0
  183. package/storybook-static/sb-addons/viewport-9/manager-bundle.js +3 -0
  184. package/storybook-static/sb-addons/viewport-9/manager-bundle.js.LEGAL.txt +0 -0
  185. package/storybook-static/sb-common-assets/fonts.css +31 -0
  186. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  187. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  188. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  189. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  190. package/storybook-static/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js +1 -0
  191. package/storybook-static/sb-manager/chunk-2IXBUOFS.js +7 -0
  192. package/storybook-static/sb-manager/chunk-INSKDKQB.js +348 -0
  193. package/storybook-static/sb-manager/chunk-NGTUFCUO.js +9 -0
  194. package/storybook-static/sb-manager/chunk-NMB3SATH.js +406 -0
  195. package/storybook-static/sb-manager/chunk-ZEU7PDD3.js +1 -0
  196. package/storybook-static/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +156 -0
  197. package/storybook-static/sb-manager/globals-module-info.js +1 -0
  198. package/storybook-static/sb-manager/globals.js +1 -0
  199. package/storybook-static/sb-manager/index.js +1 -0
  200. package/storybook-static/sb-manager/runtime.js +1 -0
  201. package/storybook-static/sb-manager/syntaxhighlighter-V7JZZA35-DXZCI2WR.js +1 -0
  202. package/storybook-static/sb-preview/globals.js +1 -0
  203. package/storybook-static/sb-preview/runtime.js +112 -0
  204. package/storybook-static/static/css/Presentation-ui-components-Avatar-avatar-stories.807573c8.chunk.css +3 -0
  205. package/storybook-static/static/css/Presentation-ui-components-Avatar-avatar-stories.807573c8.chunk.css.map +1 -0
  206. package/storybook-static/static/css/Presentation-ui-components-Badge-Badge-stories.7b8317f8.chunk.css +3 -0
  207. package/storybook-static/static/css/Presentation-ui-components-Badge-Badge-stories.7b8317f8.chunk.css.map +1 -0
  208. package/storybook-static/static/css/Presentation-ui-components-Button-Button-stories.1b6e1c55.chunk.css +4 -0
  209. package/storybook-static/static/css/Presentation-ui-components-Button-Button-stories.1b6e1c55.chunk.css.map +1 -0
  210. package/storybook-static/static/css/Presentation-ui-components-DialogBanner-DialogBanner-stories.bd07fad3.chunk.css +3 -0
  211. package/storybook-static/static/css/Presentation-ui-components-DialogBanner-DialogBanner-stories.bd07fad3.chunk.css.map +1 -0
  212. package/storybook-static/static/css/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.e720ff21.chunk.css +7 -0
  213. package/storybook-static/static/css/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.e720ff21.chunk.css.map +1 -0
  214. package/storybook-static/static/css/Presentation-ui-components-DialogWindow-DialogWindow-stories.6fb3af8d.chunk.css +6 -0
  215. package/storybook-static/static/css/Presentation-ui-components-DialogWindow-DialogWindow-stories.6fb3af8d.chunk.css.map +1 -0
  216. package/storybook-static/static/css/Presentation-ui-components-Dropdown-Dropdown-stories.66965d64.chunk.css +5 -0
  217. package/storybook-static/static/css/Presentation-ui-components-Dropdown-Dropdown-stories.66965d64.chunk.css.map +1 -0
  218. package/storybook-static/static/css/Presentation-ui-components-Header-Header-stories.cdc47631.chunk.css +4 -0
  219. package/storybook-static/static/css/Presentation-ui-components-Header-Header-stories.cdc47631.chunk.css.map +1 -0
  220. package/storybook-static/static/css/Presentation-ui-components-Loader-Loader-stories.dab34da1.chunk.css +3 -0
  221. package/storybook-static/static/css/Presentation-ui-components-Loader-Loader-stories.dab34da1.chunk.css.map +1 -0
  222. package/storybook-static/static/css/Presentation-ui-components-Message-Message-stories.0e129b10.chunk.css +14 -0
  223. package/storybook-static/static/css/Presentation-ui-components-Message-Message-stories.0e129b10.chunk.css.map +1 -0
  224. package/storybook-static/static/css/Presentation-ui-components-MessageInput-MessageInput-stories.0e99d80b.chunk.css +7 -0
  225. package/storybook-static/static/css/Presentation-ui-components-MessageInput-MessageInput-stories.0e99d80b.chunk.css.map +1 -0
  226. package/storybook-static/static/css/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.34aa36b2.chunk.css +3 -0
  227. package/storybook-static/static/css/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.34aa36b2.chunk.css.map +1 -0
  228. package/storybook-static/static/css/Presentation-ui-components-Placeholder-Placeholder-stories.cb7fb80a.chunk.css +3 -0
  229. package/storybook-static/static/css/Presentation-ui-components-Placeholder-Placeholder-stories.cb7fb80a.chunk.css.map +1 -0
  230. package/storybook-static/static/css/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.015ac417.chunk.css +3 -0
  231. package/storybook-static/static/css/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.015ac417.chunk.css.map +1 -0
  232. package/storybook-static/static/css/Presentation-ui-components-SettingsItem-SettingsItem-stories.7b98a5d4.chunk.css +5 -0
  233. package/storybook-static/static/css/Presentation-ui-components-SettingsItem-SettingsItem-stories.7b98a5d4.chunk.css.map +1 -0
  234. package/storybook-static/static/css/Presentation-ui-components-TextField-TextField-stories.412027f8.chunk.css +4 -0
  235. package/storybook-static/static/css/Presentation-ui-components-TextField-TextField-stories.412027f8.chunk.css.map +1 -0
  236. package/storybook-static/static/css/Presentation-ui-components-Toast-Toast-stories.11d83296.chunk.css +754 -0
  237. package/storybook-static/static/css/Presentation-ui-components-Toast-Toast-stories.11d83296.chunk.css.map +1 -0
  238. package/storybook-static/static/css/Presentation-ui-components-UserListItem-UserListItem-stories.4d072348.chunk.css +7 -0
  239. package/storybook-static/static/css/Presentation-ui-components-UserListItem-UserListItem-stories.4d072348.chunk.css.map +1 -0
  240. package/storybook-static/static/css/main.6fa55a2c.css +5 -0
  241. package/storybook-static/static/css/main.6fa55a2c.css.map +1 -0
  242. package/storybook-static/static/media/add-contact.e7e7b8b15edebe99cae9c46963126e7c.svg +3 -0
  243. package/storybook-static/static/media/add.5cbe1f2c489b81396863f7128e3d26e7.svg +3 -0
  244. package/storybook-static/static/media/admin.476c2854d7ad23f2afdedac2d9bd6815.svg +3 -0
  245. package/storybook-static/static/media/archive.d0a72898f3c47a4194d18f560a54e109.svg +3 -0
  246. package/storybook-static/static/media/arrow-left.5005351d4fa6a7c074dd9780fb49dcc8.svg +3 -0
  247. package/storybook-static/static/media/arrow-right.1be3b599e21158807fdf72f4976179a2.svg +3 -0
  248. package/storybook-static/static/media/attachment.a58b8549f46ae5bbe93be779cd9f2037.svg +3 -0
  249. package/storybook-static/static/media/audio-file.40179c472f715fc74d4da607da96aa5e.svg +3 -0
  250. package/storybook-static/static/media/back.b541e72fe05542e145575c8851558998.svg +3 -0
  251. package/storybook-static/static/media/banned.c7c74bfa1c833263f3ab42d0529132d1.svg +3 -0
  252. package/storybook-static/static/media/broadcast.55273926379e5f486ccfdfab1a310b2d.svg +7 -0
  253. package/storybook-static/static/media/broken-file.bc084278a0d284b7901b47f24001caa6.svg +3 -0
  254. package/storybook-static/static/media/camera-off.8e01960815ce7620a1039d0fc5f758b2.svg +3 -0
  255. package/storybook-static/static/media/camera-on.ddd56e36fa505d618ab772e23c8381e6.svg +3 -0
  256. package/storybook-static/static/media/camera.a5a215695fba60146e649094188f37e2.svg +3 -0
  257. package/storybook-static/static/media/chat-filled.aaf0b778d198e7b8f632a68299a8fd13.svg +3 -0
  258. package/storybook-static/static/media/chat.59cd437f21fe7043682dd04cbe6377be.svg +3 -0
  259. package/storybook-static/static/media/check-off.0c0256f00eeb75770ffc2fbd2b59eab0.svg +3 -0
  260. package/storybook-static/static/media/check-on.80442753ef6922df1913453f50099315.svg +3 -0
  261. package/storybook-static/static/media/close.c145af996de81b25f3930bf36d88b161.svg +3 -0
  262. package/storybook-static/static/media/conference.ffbdf37c0510c796138f18e6c1205204.svg +3 -0
  263. package/storybook-static/static/media/contact-filled.f04f56ba3f98ade5d7ced7814d8a5fa8.svg +3 -0
  264. package/storybook-static/static/media/contact.40a8b8104c3a448b81108ffede850963.svg +3 -0
  265. package/storybook-static/static/media/copy.100bd0fff933cbde8ad4bc2ac281c845.svg +3 -0
  266. package/storybook-static/static/media/delete.287c9b4b3b0e58cb081c6e388e68b409.svg +3 -0
  267. package/storybook-static/static/media/down.7a43a3d78885f40616ce111c86c108a4.svg +3 -0
  268. package/storybook-static/static/media/download.43c26d404dd023e42aaacc52151f7a59.svg +3 -0
  269. package/storybook-static/static/media/edit.8d813af82ecab84303ee3c97bd7bc562.svg +3 -0
  270. package/storybook-static/static/media/emoji.9a202cbb16735f3c83ba8772f0218aa4.svg +3 -0
  271. package/storybook-static/static/media/error.ec60e2052661b82f27b7ce270ae133a7.svg +3 -0
  272. package/storybook-static/static/media/favorite.194d78057be6cd7968c85e7b5822f82a.svg +3 -0
  273. package/storybook-static/static/media/file.e537292693b3c89c023fd383c70bd221.svg +3 -0
  274. package/storybook-static/static/media/forward-filled.43120a68057427c89c88b28d9b20dd90.svg +3 -0
  275. package/storybook-static/static/media/freeze.35619771e645b649c38e0427d9b39a25.svg +3 -0
  276. package/storybook-static/static/media/full-screen.6b01c93e069421c69bda2bbde5d01336.svg +3 -0
  277. package/storybook-static/static/media/gif-file.2c46a5df6c8397f5b9088e66aee3fd44.svg +3 -0
  278. package/storybook-static/static/media/group-chat.19d5305cab6017d494ac35ecb285a9fe.svg +3 -0
  279. package/storybook-static/static/media/help.786f48518c96c8e7098296d68245c339.svg +3 -0
  280. package/storybook-static/static/media/hide.2785264246d70868717984a5ad44d4c9.svg +3 -0
  281. package/storybook-static/static/media/hungup.e5d2289a9e8cd755bd1ee36b738305a2.svg +3 -0
  282. package/storybook-static/static/media/image-filled.8afb62b142d786e90102f1cac73a9c13.svg +3 -0
  283. package/storybook-static/static/media/image.64092dadd5215c8d3ba99ccac753d743.svg +3 -0
  284. package/storybook-static/static/media/income-call.60ca2d367a00d582f4b6f4a5f2047e27.svg +3 -0
  285. package/storybook-static/static/media/information.8217e163c334852f143e7199c97fab1d.svg +3 -0
  286. package/storybook-static/static/media/leave.ae5422a12edec1b61484ff2932819c77.svg +3 -0
  287. package/storybook-static/static/media/like.45662989373aa524cd580fb42432e0bc.svg +3 -0
  288. package/storybook-static/static/media/link.74f567c3ee4366d79fb81d73eb8c0919.svg +3 -0
  289. package/storybook-static/static/media/loader.2eb72391c5267453edb4106528c075ad.svg +3 -0
  290. package/storybook-static/static/media/location.cab52453404524c345ec7efdd86fa66b.svg +4 -0
  291. package/storybook-static/static/media/louder.133519141541a9cd2f0e898534b39732.svg +3 -0
  292. package/storybook-static/static/media/mention.6c4885bb0ea5ca85c8962f6f51ac1cb4.svg +3 -0
  293. package/storybook-static/static/media/mic-off.43e60427600bcf7fd78fb840ff50d804.svg +3 -0
  294. package/storybook-static/static/media/mic-on.5a52100de3770550b3a57a76827843c2.svg +4 -0
  295. package/storybook-static/static/media/minimize.a849dd3a36ece08b992a773d135a0c3f.svg +3 -0
  296. package/storybook-static/static/media/moderations.07c8d1fe96b0b8bb5911f6cc37f764c6.svg +3 -0
  297. package/storybook-static/static/media/more.4ed9ad54ae110d9760b6e9698d821960.svg +3 -0
  298. package/storybook-static/static/media/muted.cb37ac3c577c87c800466aa7aee65af2.svg +3 -0
  299. package/storybook-static/static/media/new-chat.124e0351bd0e19ff4c5fdbabbe5c6027.svg +3 -0
  300. package/storybook-static/static/media/next.97a0eeea1f8daa2d31c8452f29908bf1.svg +3 -0
  301. package/storybook-static/static/media/notifications.ab8e847ae04e2bec9209dbdd1054b0f2.svg +3 -0
  302. package/storybook-static/static/media/notify-off.4a669a3a8cbd38b3309dbc4c909f6089.svg +3 -0
  303. package/storybook-static/static/media/notify-on.ea9ffc856ad6cdbe87184af558c78eec.svg +3 -0
  304. package/storybook-static/static/media/outcome-call.9f5fec07823796ad78963a06cdcf629e.svg +3 -0
  305. package/storybook-static/static/media/pause.27eb8c32999f10d05d6a200165d798a9.svg +3 -0
  306. package/storybook-static/static/media/phone-filled.e969511d74935af26ef366f575929f68.svg +3 -0
  307. package/storybook-static/static/media/phone.6355580a064a488b6317372d71f84c00.svg +3 -0
  308. package/storybook-static/static/media/play.00bfe0e9c94dc6dfb230262e45b2f860.svg +3 -0
  309. package/storybook-static/static/media/plus.d3953cb1cf830bcfc41c8cc6133b13b1.svg +3 -0
  310. package/storybook-static/static/media/private-chat.c68f36baf025b9d20ad1f801a2396e7a.svg +3 -0
  311. package/storybook-static/static/media/public-channel.7a6ada7f30c44fb4a99021df0eb0e996.svg +7 -0
  312. package/storybook-static/static/media/quite.9f45e2152fe6c499a776cb387ee4859f.svg +3 -0
  313. package/storybook-static/static/media/record.e49ee7da793b2ce446a4e7128970c0cc.svg +3 -0
  314. package/storybook-static/static/media/refresh.6e955728d9ec086f34e9adaaaafacf3e.svg +3 -0
  315. package/storybook-static/static/media/remove-2.8a7700757f02c941f03c37c7e495bf63.svg +3 -0
  316. package/storybook-static/static/media/remove.831e69b70db1b3eb72a49444b8aa1e16.svg +3 -0
  317. package/storybook-static/static/media/rephrase.551171aa8903b31746a58a95528b1f68.svg +6 -0
  318. package/storybook-static/static/media/reply-filled.17ed65506e902f17bb22e87ffac93314.svg +3 -0
  319. package/storybook-static/static/media/screenshare.c2f94264a7640ea1bbb2a22f7d570038.svg +3 -0
  320. package/storybook-static/static/media/search.25663e60d71e01c64fdfc83df7460ab0.svg +3 -0
  321. package/storybook-static/static/media/send.d298db52aafdb846a46c9d180ad45946.svg +3 -0
  322. package/storybook-static/static/media/sent.f427753e5502fd7783a08e5f0e0d2f35.svg +3 -0
  323. package/storybook-static/static/media/settings-filled.bd9b60ff4e9eae911e4e2bc69e8e79ca.svg +3 -0
  324. package/storybook-static/static/media/share.7ce8283aa267fb065c568d65b482e211.svg +3 -0
  325. package/storybook-static/static/media/show.de1782527c4a7fa14101dffbfba8aea6.svg +3 -0
  326. package/storybook-static/static/media/speaker-off.fe84597c4b68f4f761e12f789dc58718.svg +3 -0
  327. package/storybook-static/static/media/speaker.e7ff48a73ca43188703b36dfecd932b5.svg +3 -0
  328. package/storybook-static/static/media/stop-record.a2e9d50a0930c24af43d7f357093be81.svg +3 -0
  329. package/storybook-static/static/media/stop-share.d1be236e01dd924ba711e1e17f41054c.svg +3 -0
  330. package/storybook-static/static/media/stream-filled.c40bae61fea25455602a61db5e77fa71.svg +3 -0
  331. package/storybook-static/static/media/stream.700f4f8ce0cee0ae1ef56132867427fe.svg +3 -0
  332. package/storybook-static/static/media/swap-camera.bc3a4652106f5c57d14b4dcbffff08a5.svg +3 -0
  333. package/storybook-static/static/media/text-document.cad7e87368501b96de2a939d08852dcd.svg +3 -0
  334. package/storybook-static/static/media/unarchive.1b1a7438cd8eb6fee80e6ac89baa195b.svg +3 -0
  335. package/storybook-static/static/media/user.911c7ae778615185b285ce0ae4068486.svg +3 -0
  336. package/storybook-static/static/media/video-file.dc2971be489b2af7b1c04dcc55bfe881.svg +3 -0
  337. package/storybook-static/static/media/video.bbcc2109285c18eea02ede86920de0dd.svg +3 -0
  338. package/storybook-static/static/media/viewed-delivered.f43360dc87235a6cf574ff53f73dd777.svg +3 -0
  339. package/storybook-static/static/media/voice.b937c8a1f744050bec2cd389ad2a1f3a.svg +3 -0
  340. package/storybook-static/stories.json +1 -0
  341. package/dist/Presentation/providers/ModalContextProvider/Modal.d.ts +0 -14
  342. package/dist/Presentation/providers/ModalContextProvider/ModalContextProvider.d.ts +0 -4
  343. package/dist/Presentation/providers/ModalContextProvider/useModal.d.ts +0 -11
  344. package/dist/Presentation/ui-components/Message/AIAssist/AIAssist.d.ts +0 -9
  345. package/dist/Presentation/ui-components/Message/AITranslate/AITranslate.d.ts +0 -13
  346. package/dist/Presentation/ui-components/MessageItem/MessageItem.d.ts +0 -25
  347. package/src/Presentation/providers/ModalContextProvider/Modal.scss +0 -76
  348. package/src/Presentation/providers/ModalContextProvider/Modal.tsx +0 -80
  349. package/src/Presentation/providers/ModalContextProvider/ModalContextProvider.tsx +0 -38
  350. package/src/Presentation/providers/ModalContextProvider/useModal.ts +0 -39
  351. package/src/Presentation/ui-components/Message/AIAssist/AIAssist.tsx +0 -25
  352. package/src/Presentation/ui-components/Message/AITranslate/AITranslate.tsx +0 -79
  353. package/src/Presentation/ui-components/MessageItem/MessageItem.tsx +0 -332
  354. /package/dist/Presentation/{ui-components/Message → Views/Dialog}/MessageContextMenu/MessageContextMenu.d.ts +0 -0
  355. /package/src/Presentation/{ui-components/Message → Views/Dialog/AIComponents}/AIAssist/AIAssist.scss +0 -0
  356. /package/src/Presentation/{ui-components/Message → Views/Dialog/AIComponents}/AITranslate/AITranslate.scss +0 -0
  357. /package/src/Presentation/{ui-components/Message → Views/Dialog}/MessageContextMenu/MessageContextMenu.scss +0 -0
@@ -0,0 +1,26 @@
1
+ import type { StorybookConfig } from '@storybook/react-webpack5';
2
+
3
+ const config: StorybookConfig = {
4
+ stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5
+ addons: [
6
+ '@storybook/addon-links',
7
+ '@storybook/addon-essentials',
8
+ '@storybook/preset-create-react-app',
9
+ '@storybook/addon-onboarding',
10
+ '@storybook/addon-interactions',
11
+ '@storybook/addon-viewport'
12
+ ],
13
+ framework: {
14
+ name: '@storybook/react-webpack5',
15
+ options: {
16
+ builder: {
17
+ useSWC: true,
18
+ },
19
+ },
20
+ },
21
+ docs: {
22
+ autodocs: 'tag',
23
+ },
24
+ staticDirs: ['../public'],
25
+ };
26
+ export default config;
@@ -0,0 +1,16 @@
1
+ import type { Preview } from '@storybook/react';
2
+ import '../src/index.scss';
3
+
4
+ const preview: Preview = {
5
+ parameters: {
6
+ actions: { argTypesRegex: '^on[A-Z].*' },
7
+ controls: {
8
+ matchers: {
9
+ color: /(background|color)$/i,
10
+ date: /Date$/i,
11
+ },
12
+ },
13
+ },
14
+ };
15
+
16
+ export default preview;
package/README.md CHANGED
@@ -14,6 +14,8 @@ The main goal of the QuickBlox UIKit for React is to offer developers a streamli
14
14
 
15
15
  The QuickBlox UIKit for React offers modules that encapsulate complex chat functionalities, such as dialogs and chat management and real-time updates. These modules provide a simplified interface for integrating chat features into applications without the need for extensive knowledge of the underlying protocols or server-side infrastructure.
16
16
 
17
+ You can view and interact with the interface components of the UI Kit using Storybook. In fact, this provides an interactive environment showcasing different scenarios that UI components might encounter in a live application. To view these, visit our [documentation](https://quickblox.github.io/react-ui-kit/).
18
+
17
19
  # Screenshots
18
20
 
19
21
  Chat dashboard with list of dialogs and create new chat dialog;
@@ -291,8 +293,10 @@ and specify selected components:
291
293
  />
292
294
  ```
293
295
  # Sample
294
-
296
+ The source code of the sample is available on GitHub:
295
297
  https://github.com/QuickBlox/quickblox-javascript-sdk/tree/gh-pages/samples/react-chat-ui-kit-init-sample
298
+ You can view and interact with the interface components of the UI Kit using Storybook. In fact, this provides an interactive environment showcasing different scenarios that UI components might encounter in a live application. To view these, visit our [documentation](https://quickblox.github.io/react-ui-kit/).
299
+
296
300
  ## Video guide "How to use AI Feature"
297
301
  [Youtube video about AI Assistant](https://youtu.be/BneMtDagOy4)
298
302
  # License
@@ -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
  };
@@ -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
+ }
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { AIMessageWidget } from '../../AIWidgets/AIMessageWidget';
3
+ import { MessageEntity } from '../../../../../Domain/entity/MessageEntity';
4
+ import './AIAssist.scss';
5
+ interface AIAssistProps {
6
+ loading?: boolean;
7
+ AIAssistWidget: AIMessageWidget;
8
+ maxTokens?: number;
9
+ onLoading: (isLoading: boolean, id: string) => void;
10
+ onError: (messageError: string) => void;
11
+ messageToAssist?: MessageEntity;
12
+ messageHistory?: MessageEntity[];
13
+ currentUserId?: number;
14
+ }
15
+ export default function AIAssist({ loading, AIAssistWidget, maxTokens, onLoading, onError, messageToAssist, messageHistory, currentUserId, }: AIAssistProps): JSX.Element;
16
+ export {};
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { MessageEntity } from '../../../../../Domain/entity/MessageEntity';
3
+ import { AIMessageWidget } from '../../AIWidgets/AIMessageWidget';
4
+ import './AITranslate.scss';
5
+ interface AITranslateComponentProps {
6
+ AITranslateWidget: AIMessageWidget;
7
+ originalTextMessage: boolean;
8
+ loading?: boolean;
9
+ defaultLanguage: string;
10
+ languages: string[];
11
+ maxTokens?: number;
12
+ onLoading: (isLoading: boolean, id: string) => void;
13
+ onError: (messageError: string) => void;
14
+ onTranslated: (id: string, textTranslated: string) => void;
15
+ messageToTranslate?: MessageEntity;
16
+ messageHistory?: MessageEntity[];
17
+ currentUserId?: number;
18
+ }
19
+ export default function AITranslate({ AITranslateWidget, originalTextMessage, loading, defaultLanguage, languages, maxTokens, onLoading, onError, onTranslated, messageToTranslate, messageHistory, currentUserId, }: AITranslateComponentProps): JSX.Element;
20
+ export {};
@@ -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;
@@ -0,0 +1,22 @@
1
+ import { RefObject } from 'react';
2
+ import { MessageEntity } from '../../../../Domain/entity/MessageEntity';
3
+ import { FunctionTypeMessageEntityToVoid } from '../../../../CommonTypes/BaseViewModel';
4
+ import { AIMessageWidget } from '../AIWidgets/AIMessageWidget';
5
+ import './MessageItem.scss';
6
+ export type MessageItemProps = {
7
+ message: MessageEntity;
8
+ currentUserId?: number;
9
+ AITranslateWidget?: AIMessageWidget;
10
+ AIAssistWidget?: AIMessageWidget;
11
+ maxTokens: number;
12
+ defaultTranslationLanguage: string;
13
+ languagesForAITranslate: string[];
14
+ enableForwarding: boolean;
15
+ enableReplying: boolean;
16
+ onReply: FunctionTypeMessageEntityToVoid;
17
+ onForward: FunctionTypeMessageEntityToVoid;
18
+ listRef?: RefObject<HTMLDivElement>;
19
+ messagesToView: MessageEntity[];
20
+ onError: (messageError: string) => void;
21
+ };
22
+ export default function MessageItem({ message, currentUserId, enableForwarding, enableReplying, onReply, onForward, listRef, messagesToView, AITranslateWidget, AIAssistWidget, maxTokens, defaultTranslationLanguage, languagesForAITranslate, onError, }: MessageItemProps): JSX.Element | null;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import './DialogInfo.scss';
3
3
  import { DialogEntity } from '../../../Domain/entity/DialogEntity';
4
- import { FunctionTypeBooleanToVoid, FunctionTypeDialogEntityToVoid, FunctionTypeVoidToVoid } from '../../../CommonTypes/BaseViewModel';
4
+ import { FunctionTypeBooleanToVoid, FunctionTypeVoidToVoid } from '../../../CommonTypes/BaseViewModel';
5
5
  import { DialogListViewModel } from '../DialogList/DialogListViewModel';
6
6
  import UiKitTheme from '../../themes/UiKitTheme';
7
7
  import { UserEntity } from '../../../Domain/entity/UserEntity';
@@ -9,7 +9,6 @@ type HeaderDialogsProps = {
9
9
  dialog: DialogEntity;
10
10
  dialogViewModel: DialogListViewModel;
11
11
  onCloseDialogInformationHandler: FunctionTypeVoidToVoid;
12
- onLeaveDialog: FunctionTypeDialogEntityToVoid;
13
12
  onShowAllMemberClick: FunctionTypeBooleanToVoid;
14
13
  users: UserEntity[];
15
14
  theme?: UiKitTheme;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FunctionTypeDialogEntityToVoid, FunctionTypeViewModelToVoid } from '../../../CommonTypes/BaseViewModel';
2
+ import { FunctionTypeDialogEntityToVoid, FunctionTypeViewModelToVoid, FunctionTypeVoidToVoid } from '../../../CommonTypes/BaseViewModel';
3
3
  import { ThemeNames } from '../PreviewDialog/PreviewDialog';
4
4
  import { DialogListViewModel } from './DialogListViewModel';
5
5
  import { DialogEntity } from '../../../Domain/entity/DialogEntity';
@@ -19,9 +19,11 @@ type DialogsProps = {
19
19
  header?: React.ReactNode;
20
20
  subHeaderContent?: React.ReactNode;
21
21
  upHeaderContent?: React.ReactNode;
22
- onDialogSelectHandler?: FunctionTypeViewModelToVoid<DialogEntity>;
22
+ selectedDialog?: DialogEntity;
23
+ onDialogSelected?: FunctionTypeViewModelToVoid<DialogEntity>;
23
24
  onLeaveDialog: FunctionTypeDialogEntityToVoid;
24
- dialogsViewModel: DialogListViewModel;
25
+ onCreateDialog?: FunctionTypeVoidToVoid;
26
+ dialogListViewModel: DialogListViewModel;
25
27
  additionalSettings?: DialogsComponentSettings;
26
28
  scrollableHeight?: number;
27
29
  };
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
2
  import { DialogListViewModel } from '../../DialogList/DialogListViewModel';
3
+ import { DialogEntity } from '../../../../Domain/entity/DialogEntity';
3
4
  type CreateNewDialogFlowProps = {
4
5
  dialogsViewModel: DialogListViewModel;
6
+ onFinished: (newEntity: DialogEntity) => void;
7
+ onCancel?: () => void;
5
8
  };
6
9
  declare const CreateNewDialogFlow: React.FC<CreateNewDialogFlowProps>;
7
10
  export default CreateNewDialogFlow;
@@ -5,7 +5,6 @@ type YesNoQuestionProps = {
5
5
  messageText?: string;
6
6
  onClickYesAction?: FunctionTypeVoidToVoid;
7
7
  OnTouchYesAction?: FunctionTypeVoidToVoid;
8
- onClickNoAction?: FunctionTypeVoidToVoid;
9
8
  onTouchNoAction?: FunctionTypeVoidToVoid;
10
9
  yesActionCaption?: string;
11
10
  noActionCaption?: string;
@@ -7,9 +7,9 @@ export type MessageProps = {
7
7
  type: 'outgoing' | 'incoming';
8
8
  subtype?: 'reply' | 'forward';
9
9
  status?: 'sent' | 'delivered' | 'viewed' | 'error';
10
- enableSelect: boolean;
11
- isSelect: boolean;
12
- disabled: boolean;
10
+ enableSelect?: boolean;
11
+ isSelect?: boolean;
12
+ disabled?: boolean;
13
13
  onSelect?: (isSelected: boolean) => void;
14
14
  bottomPart?: ReactElement;
15
15
  additionalPart?: ReactElement;
@@ -6,4 +6,3 @@ type Story = StoryObj<typeof meta>;
6
6
  export declare const MessageText: Story;
7
7
  export declare const MessageImage: Story;
8
8
  export declare const MessageFile: Story;
9
- export declare const MessageTextWithAIfeatures: Story;
@@ -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>;
@@ -1,8 +1,8 @@
1
1
  import { ReactElement } from 'react';
2
2
  import './Placeholder.scss';
3
3
  interface PlaceholderProps {
4
- icon: ReactElement;
5
- text: string;
4
+ icon?: ReactElement;
5
+ text: string | string[];
6
6
  onRetry?: VoidFunction;
7
7
  className?: string;
8
8
  }
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import './UserListItem.scss';
3
+ export interface UserListItemProps {
4
+ userName: string;
5
+ avatarUrl?: string;
6
+ checked?: boolean;
7
+ disabled?: boolean;
8
+ onChange?: (checked: boolean) => void;
9
+ className?: string;
10
+ }
11
+ export default function UserListItem({ avatarUrl, userName, checked, disabled, onChange, className, }: UserListItemProps): JSX.Element;
@@ -0,0 +1,86 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import UserListItem from './UserListItem';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof UserListItem;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ args: {
11
+ className: string;
12
+ disabled: false;
13
+ checked: false;
14
+ userName: string;
15
+ avatarUrl: string;
16
+ };
17
+ argTypes: {
18
+ avatarUrl: {
19
+ table: {
20
+ type: {
21
+ summary: string;
22
+ };
23
+ };
24
+ description: string;
25
+ };
26
+ userName: {
27
+ table: {
28
+ type: {
29
+ summary: string;
30
+ };
31
+ defaultValue: {
32
+ summary: string;
33
+ };
34
+ };
35
+ description: string;
36
+ };
37
+ disabled: {
38
+ table: {
39
+ type: {
40
+ summary: string;
41
+ };
42
+ defaultValue: {
43
+ summary: boolean;
44
+ };
45
+ };
46
+ description: string;
47
+ };
48
+ checked: {
49
+ table: {
50
+ type: {
51
+ summary: string;
52
+ };
53
+ defaultValue: {
54
+ summary: boolean;
55
+ };
56
+ };
57
+ description: string;
58
+ };
59
+ onChange: {
60
+ table: {
61
+ defaultValue: {
62
+ summary: string;
63
+ };
64
+ type: {
65
+ summary: string;
66
+ };
67
+ };
68
+ description: string;
69
+ };
70
+ className: {
71
+ table: {
72
+ defaultValue: {
73
+ summary: string;
74
+ };
75
+ type: {
76
+ summary: string;
77
+ };
78
+ };
79
+ description: string;
80
+ };
81
+ };
82
+ };
83
+ export default meta;
84
+ type StoryDefault = StoryObj<typeof meta>;
85
+ export declare const UserListItemDefault: StoryDefault;
86
+ export declare const UserList: StoryDefault;
@@ -1,13 +1,19 @@
1
1
  export { default as Avatar } from './Avatar/Avatar';
2
2
  export { default as Badge } from './Badge/Badge';
3
3
  export { default as Button } from './Button/Button';
4
+ export { default as CheckBox } from './CheckBox/CheckBox';
4
5
  export { default as DialogBanner } from './DialogBanner/DialogBanner';
5
6
  export { default as DialogItemPreview } from './DialogItemPreview/DialogItemPreview';
7
+ export { default as DialogWindow } from './DialogWindow/DialogWindow';
6
8
  export { default as Dropdown } from './Dropdown/Dropdown';
7
9
  export { default as Header } from './Header/Header';
8
10
  export { default as Loader } from './Loader/Loader';
11
+ export { default as Message } from './Message/Message';
12
+ export { default as MessageInput } from './MessageInput/MessageInput';
9
13
  export { default as MessageSeparator } from './MessageSeparator/MessageSeparator';
10
14
  export { default as Placeholder } from './Placeholder/Placeholder';
11
15
  export { default as PreviewFileMessage } from './PreviewFileMessage/PreviewFileMessage';
12
16
  export { default as SettingsItem } from './SettingsItem/SettingsItem';
13
17
  export { default as TextField } from './TextField/TextField';
18
+ export { default as ToastProvider } from './Toast/ToastProvider';
19
+ export { default as UserListItem } from './UserListItem/UserListItem';
@@ -0,0 +1,5 @@
1
+ declare const useModal: () => {
2
+ isOpen: boolean;
3
+ toggleModal: () => void;
4
+ };
5
+ export default useModal;