quickblox-react-ui-kit 0.3.0-beta.1 → 0.3.0-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 (310) 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/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.d.ts +16 -0
  5. package/dist/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.d.ts +20 -0
  6. package/dist/Presentation/Views/Dialog/MessageItem/MessageItem.d.ts +22 -0
  7. package/dist/Presentation/Views/DialogInfo/DialogInfo.d.ts +1 -2
  8. package/dist/Presentation/Views/DialogList/DialogList.d.ts +5 -3
  9. package/dist/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.d.ts +3 -0
  10. package/dist/Presentation/Views/YesNoQuestion/YesNoQuestion.d.ts +0 -1
  11. package/dist/Presentation/ui-components/Message/Message.d.ts +3 -3
  12. package/dist/Presentation/ui-components/Message/Message.stories.d.ts +0 -1
  13. package/dist/Presentation/ui-components/Placeholder/Placeholder.d.ts +2 -2
  14. package/dist/Presentation/ui-components/UserListItem/UserListItem.d.ts +11 -0
  15. package/dist/Presentation/ui-components/UserListItem/UserListItem.stories.d.ts +86 -0
  16. package/dist/Presentation/ui-components/index.d.ts +6 -0
  17. package/dist/hooks/useModal.d.ts +5 -0
  18. package/dist/index-ui.js +1460 -1846
  19. package/dist/index-ui.js.map +1 -1
  20. package/package.json +1 -1
  21. package/src/Data/DefaultConfigurations.ts +4 -4
  22. package/src/Presentation/Views/Dialog/AIComponents/AIAssist/AIAssist.tsx +64 -0
  23. package/src/Presentation/Views/Dialog/AIComponents/AITranslate/AITranslate.tsx +117 -0
  24. package/src/Presentation/Views/Dialog/Dialog.tsx +0 -22
  25. package/src/Presentation/{ui-components/Message → Views/Dialog}/MessageContextMenu/MessageContextMenu.tsx +2 -2
  26. package/src/Presentation/{ui-components → Views/Dialog}/MessageItem/MessageItem.scss +1 -2
  27. package/src/Presentation/Views/Dialog/MessageItem/MessageItem.tsx +364 -0
  28. package/src/Presentation/Views/Dialog/useDialogViewModel.ts +1 -0
  29. package/src/Presentation/Views/DialogInfo/DialogInfo.scss +14 -0
  30. package/src/Presentation/Views/DialogInfo/DialogInfo.tsx +115 -120
  31. package/src/Presentation/Views/DialogInfo/UsersList/UsersList.tsx +8 -6
  32. package/src/Presentation/Views/DialogInfo/UsersList/useUsersListViewModel.ts +3 -1
  33. package/src/Presentation/Views/DialogList/DialogList.scss +19 -5
  34. package/src/Presentation/Views/DialogList/DialogList.tsx +91 -56
  35. package/src/Presentation/Views/DialogList/useDialogListViewModel.ts +28 -24
  36. package/src/Presentation/Views/EditDialog/EditDialog.scss +8 -8
  37. package/src/Presentation/Views/EditDialog/EditDialog.tsx +46 -58
  38. package/src/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.tsx +10 -19
  39. package/src/Presentation/Views/Flow/LeaveDialogFlow/LeaveDialogFlow.tsx +0 -11
  40. package/src/Presentation/Views/InviteMembers/InviteMembers.scss +61 -16
  41. package/src/Presentation/Views/InviteMembers/InviteMembers.tsx +39 -63
  42. package/src/Presentation/Views/PreviewDialog/PreviewDialog.scss +5 -1
  43. package/src/Presentation/Views/PreviewDialog/PreviewDialog.tsx +1 -0
  44. package/src/Presentation/Views/YesNoQuestion/YesNoQuestion.tsx +6 -18
  45. package/src/Presentation/layouts/Desktop/DesktopLayout.scss +18 -2
  46. package/src/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +114 -100
  47. package/src/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +1 -2
  48. package/src/Presentation/ui-components/DialogWindow/DialogWindow.scss +5 -0
  49. package/src/Presentation/ui-components/Dropdown/Dropdown.stories.tsx +4 -3
  50. package/src/Presentation/ui-components/Dropdown/Dropdown.tsx +6 -1
  51. package/src/Presentation/ui-components/Loader/Loader.stories.ts +1 -1
  52. package/src/Presentation/ui-components/Loader/Loader.tsx +1 -1
  53. package/src/Presentation/ui-components/Message/Bubble/AttachmentBubble/AttachmentBubble.tsx +7 -1
  54. package/src/Presentation/ui-components/Message/Message.scss +0 -7
  55. package/src/Presentation/ui-components/Message/Message.stories.tsx +23 -35
  56. package/src/Presentation/ui-components/Message/Message.tsx +5 -5
  57. package/src/Presentation/ui-components/Message/TimeAndStatus/TimeAndStatus.scss +1 -4
  58. package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.scss +0 -1
  59. package/src/Presentation/ui-components/Placeholder/Placeholder.scss +1 -1
  60. package/src/Presentation/ui-components/Placeholder/Placeholder.stories.tsx +4 -4
  61. package/src/Presentation/ui-components/Placeholder/Placeholder.tsx +10 -4
  62. package/src/Presentation/ui-components/TextField/TextField.scss +1 -0
  63. package/src/Presentation/ui-components/Toast/Toast.scss +2 -3
  64. package/src/Presentation/ui-components/Toast/ToastProvider.tsx +0 -1
  65. package/src/Presentation/ui-components/UserListItem/UserListItem.scss +33 -0
  66. package/src/Presentation/ui-components/UserListItem/UserListItem.stories.tsx +128 -0
  67. package/src/Presentation/ui-components/UserListItem/UserListItem.tsx +43 -0
  68. package/src/Presentation/ui-components/index.ts +6 -0
  69. package/src/QBconfig.ts +4 -4
  70. package/src/hooks/useModal.ts +13 -0
  71. package/storybook-static/312.0aa0e670.iframe.bundle.js +1 -0
  72. package/storybook-static/341.bea6d0bd.iframe.bundle.js +1 -0
  73. package/storybook-static/426.be971fb5.iframe.bundle.js +157 -0
  74. package/storybook-static/426.be971fb5.iframe.bundle.js.map +1 -0
  75. package/storybook-static/472.3c9e81e6.iframe.bundle.js +351 -0
  76. package/storybook-static/472.3c9e81e6.iframe.bundle.js.map +1 -0
  77. package/storybook-static/607.b04b9f0b.iframe.bundle.js +1 -0
  78. package/storybook-static/729.734b4ae4.iframe.bundle.js +1 -0
  79. package/storybook-static/758.d99b0166.iframe.bundle.js +14 -0
  80. package/storybook-static/758.d99b0166.iframe.bundle.js.map +1 -0
  81. package/storybook-static/797.b3873e04.iframe.bundle.js +1 -0
  82. package/storybook-static/926.f14bb932.iframe.bundle.js +508 -0
  83. package/storybook-static/926.f14bb932.iframe.bundle.js.map +1 -0
  84. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.2fb23ae6.iframe.bundle.js +1 -0
  85. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.fea53429.iframe.bundle.js +14 -0
  86. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.fea53429.iframe.bundle.js.map +1 -0
  87. package/storybook-static/Presentation-ui-components-Button-Button-stories.f6c6437b.iframe.bundle.js +1 -0
  88. package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.6b2a3f72.iframe.bundle.js +10 -0
  89. package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.6b2a3f72.iframe.bundle.js.map +1 -0
  90. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.f1cb9d40.iframe.bundle.js +1 -0
  91. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.0ad17c54.iframe.bundle.js +1 -0
  92. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.3b620239.iframe.bundle.js +1 -0
  93. package/storybook-static/Presentation-ui-components-Header-Header-stories.45503161.iframe.bundle.js +1 -0
  94. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.8b53bb33.iframe.bundle.js +1 -0
  95. package/storybook-static/Presentation-ui-components-Message-Message-stories.63bec01b.iframe.bundle.js +1 -0
  96. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.728a66ad.iframe.bundle.js +1 -0
  97. package/storybook-static/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.82483823.iframe.bundle.js +10 -0
  98. package/storybook-static/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.82483823.iframe.bundle.js.map +1 -0
  99. package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.0898ead6.iframe.bundle.js +1 -0
  100. package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.973cdb64.iframe.bundle.js +1 -0
  101. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.0af0b8a8.iframe.bundle.js +1 -0
  102. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.5987d2bb.iframe.bundle.js +1 -0
  103. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.e26b2e07.iframe.bundle.js +1 -0
  104. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.e88f4206.iframe.bundle.js +1 -0
  105. package/storybook-static/favicon.ico +0 -0
  106. package/storybook-static/favicon.svg +7 -0
  107. package/storybook-static/iframe.html +355 -0
  108. package/storybook-static/index.html +131 -0
  109. package/storybook-static/index.json +1 -0
  110. package/storybook-static/logo192.png +0 -0
  111. package/storybook-static/logo512.png +0 -0
  112. package/storybook-static/main.0332574c.iframe.bundle.js +1 -0
  113. package/storybook-static/manifest.json +25 -0
  114. package/storybook-static/project.json +1 -0
  115. package/storybook-static/quickblox.js +54609 -0
  116. package/storybook-static/robots.txt +3 -0
  117. package/storybook-static/runtime~main.16726a14.iframe.bundle.js +1 -0
  118. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
  119. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  120. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
  121. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  122. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +63 -0
  123. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +18 -0
  124. package/storybook-static/sb-addons/essentials-measure-5/manager-bundle.js +3 -0
  125. package/storybook-static/sb-addons/essentials-measure-5/manager-bundle.js.LEGAL.txt +0 -0
  126. package/storybook-static/sb-addons/essentials-outline-6/manager-bundle.js +3 -0
  127. package/storybook-static/sb-addons/essentials-outline-6/manager-bundle.js.LEGAL.txt +0 -0
  128. package/storybook-static/sb-addons/essentials-toolbars-4/manager-bundle.js +3 -0
  129. package/storybook-static/sb-addons/essentials-toolbars-4/manager-bundle.js.LEGAL.txt +0 -0
  130. package/storybook-static/sb-addons/interactions-8/manager-bundle.js +12 -0
  131. package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
  132. package/storybook-static/sb-addons/links-0/manager-bundle.js +3 -0
  133. package/storybook-static/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
  134. package/storybook-static/sb-addons/onboarding-7/manager-bundle.js +503 -0
  135. package/storybook-static/sb-addons/onboarding-7/manager-bundle.js.LEGAL.txt +48 -0
  136. package/storybook-static/sb-addons/viewport-9/manager-bundle.js +3 -0
  137. package/storybook-static/sb-addons/viewport-9/manager-bundle.js.LEGAL.txt +0 -0
  138. package/storybook-static/sb-common-assets/fonts.css +31 -0
  139. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  140. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  141. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  142. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  143. package/storybook-static/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js +1 -0
  144. package/storybook-static/sb-manager/chunk-2IXBUOFS.js +7 -0
  145. package/storybook-static/sb-manager/chunk-INSKDKQB.js +348 -0
  146. package/storybook-static/sb-manager/chunk-NGTUFCUO.js +9 -0
  147. package/storybook-static/sb-manager/chunk-NMB3SATH.js +406 -0
  148. package/storybook-static/sb-manager/chunk-ZEU7PDD3.js +1 -0
  149. package/storybook-static/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +156 -0
  150. package/storybook-static/sb-manager/globals-module-info.js +1 -0
  151. package/storybook-static/sb-manager/globals.js +1 -0
  152. package/storybook-static/sb-manager/index.js +1 -0
  153. package/storybook-static/sb-manager/runtime.js +1 -0
  154. package/storybook-static/sb-manager/syntaxhighlighter-V7JZZA35-DXZCI2WR.js +1 -0
  155. package/storybook-static/sb-preview/globals.js +1 -0
  156. package/storybook-static/sb-preview/runtime.js +112 -0
  157. package/storybook-static/static/css/Presentation-ui-components-Avatar-avatar-stories.807573c8.chunk.css +3 -0
  158. package/storybook-static/static/css/Presentation-ui-components-Avatar-avatar-stories.807573c8.chunk.css.map +1 -0
  159. package/storybook-static/static/css/Presentation-ui-components-Badge-Badge-stories.7b8317f8.chunk.css +3 -0
  160. package/storybook-static/static/css/Presentation-ui-components-Badge-Badge-stories.7b8317f8.chunk.css.map +1 -0
  161. package/storybook-static/static/css/Presentation-ui-components-Button-Button-stories.1b6e1c55.chunk.css +4 -0
  162. package/storybook-static/static/css/Presentation-ui-components-Button-Button-stories.1b6e1c55.chunk.css.map +1 -0
  163. package/storybook-static/static/css/Presentation-ui-components-DialogBanner-DialogBanner-stories.bd07fad3.chunk.css +3 -0
  164. package/storybook-static/static/css/Presentation-ui-components-DialogBanner-DialogBanner-stories.bd07fad3.chunk.css.map +1 -0
  165. package/storybook-static/static/css/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.e720ff21.chunk.css +7 -0
  166. package/storybook-static/static/css/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.e720ff21.chunk.css.map +1 -0
  167. package/storybook-static/static/css/Presentation-ui-components-DialogWindow-DialogWindow-stories.6fb3af8d.chunk.css +6 -0
  168. package/storybook-static/static/css/Presentation-ui-components-DialogWindow-DialogWindow-stories.6fb3af8d.chunk.css.map +1 -0
  169. package/storybook-static/static/css/Presentation-ui-components-Dropdown-Dropdown-stories.66965d64.chunk.css +5 -0
  170. package/storybook-static/static/css/Presentation-ui-components-Dropdown-Dropdown-stories.66965d64.chunk.css.map +1 -0
  171. package/storybook-static/static/css/Presentation-ui-components-Header-Header-stories.cdc47631.chunk.css +4 -0
  172. package/storybook-static/static/css/Presentation-ui-components-Header-Header-stories.cdc47631.chunk.css.map +1 -0
  173. package/storybook-static/static/css/Presentation-ui-components-Loader-Loader-stories.dab34da1.chunk.css +3 -0
  174. package/storybook-static/static/css/Presentation-ui-components-Loader-Loader-stories.dab34da1.chunk.css.map +1 -0
  175. package/storybook-static/static/css/Presentation-ui-components-Message-Message-stories.a518b61a.chunk.css +14 -0
  176. package/storybook-static/static/css/Presentation-ui-components-Message-Message-stories.a518b61a.chunk.css.map +1 -0
  177. package/storybook-static/static/css/Presentation-ui-components-MessageInput-MessageInput-stories.0e99d80b.chunk.css +7 -0
  178. package/storybook-static/static/css/Presentation-ui-components-MessageInput-MessageInput-stories.0e99d80b.chunk.css.map +1 -0
  179. package/storybook-static/static/css/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.34aa36b2.chunk.css +3 -0
  180. package/storybook-static/static/css/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.34aa36b2.chunk.css.map +1 -0
  181. package/storybook-static/static/css/Presentation-ui-components-Placeholder-Placeholder-stories.1ebf88ab.chunk.css +4 -0
  182. package/storybook-static/static/css/Presentation-ui-components-Placeholder-Placeholder-stories.1ebf88ab.chunk.css.map +1 -0
  183. package/storybook-static/static/css/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.015ac417.chunk.css +3 -0
  184. package/storybook-static/static/css/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.015ac417.chunk.css.map +1 -0
  185. package/storybook-static/static/css/Presentation-ui-components-SettingsItem-SettingsItem-stories.7b98a5d4.chunk.css +5 -0
  186. package/storybook-static/static/css/Presentation-ui-components-SettingsItem-SettingsItem-stories.7b98a5d4.chunk.css.map +1 -0
  187. package/storybook-static/static/css/Presentation-ui-components-TextField-TextField-stories.412027f8.chunk.css +4 -0
  188. package/storybook-static/static/css/Presentation-ui-components-TextField-TextField-stories.412027f8.chunk.css.map +1 -0
  189. package/storybook-static/static/css/Presentation-ui-components-Toast-Toast-stories.11d83296.chunk.css +754 -0
  190. package/storybook-static/static/css/Presentation-ui-components-Toast-Toast-stories.11d83296.chunk.css.map +1 -0
  191. package/storybook-static/static/css/Presentation-ui-components-UserListItem-UserListItem-stories.4d072348.chunk.css +7 -0
  192. package/storybook-static/static/css/Presentation-ui-components-UserListItem-UserListItem-stories.4d072348.chunk.css.map +1 -0
  193. package/storybook-static/static/css/main.4e852eef.css +5 -0
  194. package/storybook-static/static/css/main.4e852eef.css.map +1 -0
  195. package/storybook-static/static/media/add-contact.e7e7b8b15edebe99cae9c46963126e7c.svg +3 -0
  196. package/storybook-static/static/media/add.5cbe1f2c489b81396863f7128e3d26e7.svg +3 -0
  197. package/storybook-static/static/media/admin.476c2854d7ad23f2afdedac2d9bd6815.svg +3 -0
  198. package/storybook-static/static/media/archive.d0a72898f3c47a4194d18f560a54e109.svg +3 -0
  199. package/storybook-static/static/media/arrow-left.5005351d4fa6a7c074dd9780fb49dcc8.svg +3 -0
  200. package/storybook-static/static/media/arrow-right.1be3b599e21158807fdf72f4976179a2.svg +3 -0
  201. package/storybook-static/static/media/attachment.a58b8549f46ae5bbe93be779cd9f2037.svg +3 -0
  202. package/storybook-static/static/media/audio-file.40179c472f715fc74d4da607da96aa5e.svg +3 -0
  203. package/storybook-static/static/media/back.b541e72fe05542e145575c8851558998.svg +3 -0
  204. package/storybook-static/static/media/banned.c7c74bfa1c833263f3ab42d0529132d1.svg +3 -0
  205. package/storybook-static/static/media/broadcast.55273926379e5f486ccfdfab1a310b2d.svg +7 -0
  206. package/storybook-static/static/media/broken-file.bc084278a0d284b7901b47f24001caa6.svg +3 -0
  207. package/storybook-static/static/media/camera-off.8e01960815ce7620a1039d0fc5f758b2.svg +3 -0
  208. package/storybook-static/static/media/camera-on.ddd56e36fa505d618ab772e23c8381e6.svg +3 -0
  209. package/storybook-static/static/media/camera.a5a215695fba60146e649094188f37e2.svg +3 -0
  210. package/storybook-static/static/media/chat-filled.aaf0b778d198e7b8f632a68299a8fd13.svg +3 -0
  211. package/storybook-static/static/media/chat.59cd437f21fe7043682dd04cbe6377be.svg +3 -0
  212. package/storybook-static/static/media/check-off.0c0256f00eeb75770ffc2fbd2b59eab0.svg +3 -0
  213. package/storybook-static/static/media/check-on.80442753ef6922df1913453f50099315.svg +3 -0
  214. package/storybook-static/static/media/close.c145af996de81b25f3930bf36d88b161.svg +3 -0
  215. package/storybook-static/static/media/conference.ffbdf37c0510c796138f18e6c1205204.svg +3 -0
  216. package/storybook-static/static/media/contact-filled.f04f56ba3f98ade5d7ced7814d8a5fa8.svg +3 -0
  217. package/storybook-static/static/media/contact.40a8b8104c3a448b81108ffede850963.svg +3 -0
  218. package/storybook-static/static/media/copy.100bd0fff933cbde8ad4bc2ac281c845.svg +3 -0
  219. package/storybook-static/static/media/delete.287c9b4b3b0e58cb081c6e388e68b409.svg +3 -0
  220. package/storybook-static/static/media/down.7a43a3d78885f40616ce111c86c108a4.svg +3 -0
  221. package/storybook-static/static/media/download.43c26d404dd023e42aaacc52151f7a59.svg +3 -0
  222. package/storybook-static/static/media/edit.8d813af82ecab84303ee3c97bd7bc562.svg +3 -0
  223. package/storybook-static/static/media/emoji.9a202cbb16735f3c83ba8772f0218aa4.svg +3 -0
  224. package/storybook-static/static/media/error.ec60e2052661b82f27b7ce270ae133a7.svg +3 -0
  225. package/storybook-static/static/media/favorite.194d78057be6cd7968c85e7b5822f82a.svg +3 -0
  226. package/storybook-static/static/media/file.e537292693b3c89c023fd383c70bd221.svg +3 -0
  227. package/storybook-static/static/media/forward-filled.43120a68057427c89c88b28d9b20dd90.svg +3 -0
  228. package/storybook-static/static/media/freeze.35619771e645b649c38e0427d9b39a25.svg +3 -0
  229. package/storybook-static/static/media/full-screen.6b01c93e069421c69bda2bbde5d01336.svg +3 -0
  230. package/storybook-static/static/media/gif-file.2c46a5df6c8397f5b9088e66aee3fd44.svg +3 -0
  231. package/storybook-static/static/media/group-chat.19d5305cab6017d494ac35ecb285a9fe.svg +3 -0
  232. package/storybook-static/static/media/help.786f48518c96c8e7098296d68245c339.svg +3 -0
  233. package/storybook-static/static/media/hide.2785264246d70868717984a5ad44d4c9.svg +3 -0
  234. package/storybook-static/static/media/hungup.e5d2289a9e8cd755bd1ee36b738305a2.svg +3 -0
  235. package/storybook-static/static/media/image-filled.8afb62b142d786e90102f1cac73a9c13.svg +3 -0
  236. package/storybook-static/static/media/image.64092dadd5215c8d3ba99ccac753d743.svg +3 -0
  237. package/storybook-static/static/media/income-call.60ca2d367a00d582f4b6f4a5f2047e27.svg +3 -0
  238. package/storybook-static/static/media/information.8217e163c334852f143e7199c97fab1d.svg +3 -0
  239. package/storybook-static/static/media/leave.ae5422a12edec1b61484ff2932819c77.svg +3 -0
  240. package/storybook-static/static/media/like.45662989373aa524cd580fb42432e0bc.svg +3 -0
  241. package/storybook-static/static/media/link.74f567c3ee4366d79fb81d73eb8c0919.svg +3 -0
  242. package/storybook-static/static/media/loader.2eb72391c5267453edb4106528c075ad.svg +3 -0
  243. package/storybook-static/static/media/location.cab52453404524c345ec7efdd86fa66b.svg +4 -0
  244. package/storybook-static/static/media/louder.133519141541a9cd2f0e898534b39732.svg +3 -0
  245. package/storybook-static/static/media/mention.6c4885bb0ea5ca85c8962f6f51ac1cb4.svg +3 -0
  246. package/storybook-static/static/media/mic-off.43e60427600bcf7fd78fb840ff50d804.svg +3 -0
  247. package/storybook-static/static/media/mic-on.5a52100de3770550b3a57a76827843c2.svg +4 -0
  248. package/storybook-static/static/media/minimize.a849dd3a36ece08b992a773d135a0c3f.svg +3 -0
  249. package/storybook-static/static/media/moderations.07c8d1fe96b0b8bb5911f6cc37f764c6.svg +3 -0
  250. package/storybook-static/static/media/more.4ed9ad54ae110d9760b6e9698d821960.svg +3 -0
  251. package/storybook-static/static/media/muted.cb37ac3c577c87c800466aa7aee65af2.svg +3 -0
  252. package/storybook-static/static/media/new-chat.124e0351bd0e19ff4c5fdbabbe5c6027.svg +3 -0
  253. package/storybook-static/static/media/next.97a0eeea1f8daa2d31c8452f29908bf1.svg +3 -0
  254. package/storybook-static/static/media/notifications.ab8e847ae04e2bec9209dbdd1054b0f2.svg +3 -0
  255. package/storybook-static/static/media/notify-off.4a669a3a8cbd38b3309dbc4c909f6089.svg +3 -0
  256. package/storybook-static/static/media/notify-on.ea9ffc856ad6cdbe87184af558c78eec.svg +3 -0
  257. package/storybook-static/static/media/outcome-call.9f5fec07823796ad78963a06cdcf629e.svg +3 -0
  258. package/storybook-static/static/media/pause.27eb8c32999f10d05d6a200165d798a9.svg +3 -0
  259. package/storybook-static/static/media/phone-filled.e969511d74935af26ef366f575929f68.svg +3 -0
  260. package/storybook-static/static/media/phone.6355580a064a488b6317372d71f84c00.svg +3 -0
  261. package/storybook-static/static/media/play.00bfe0e9c94dc6dfb230262e45b2f860.svg +3 -0
  262. package/storybook-static/static/media/plus.d3953cb1cf830bcfc41c8cc6133b13b1.svg +3 -0
  263. package/storybook-static/static/media/private-chat.c68f36baf025b9d20ad1f801a2396e7a.svg +3 -0
  264. package/storybook-static/static/media/public-channel.7a6ada7f30c44fb4a99021df0eb0e996.svg +7 -0
  265. package/storybook-static/static/media/quite.9f45e2152fe6c499a776cb387ee4859f.svg +3 -0
  266. package/storybook-static/static/media/record.e49ee7da793b2ce446a4e7128970c0cc.svg +3 -0
  267. package/storybook-static/static/media/refresh.6e955728d9ec086f34e9adaaaafacf3e.svg +3 -0
  268. package/storybook-static/static/media/remove-2.8a7700757f02c941f03c37c7e495bf63.svg +3 -0
  269. package/storybook-static/static/media/remove.831e69b70db1b3eb72a49444b8aa1e16.svg +3 -0
  270. package/storybook-static/static/media/rephrase.551171aa8903b31746a58a95528b1f68.svg +6 -0
  271. package/storybook-static/static/media/reply-filled.17ed65506e902f17bb22e87ffac93314.svg +3 -0
  272. package/storybook-static/static/media/screenshare.c2f94264a7640ea1bbb2a22f7d570038.svg +3 -0
  273. package/storybook-static/static/media/search.25663e60d71e01c64fdfc83df7460ab0.svg +3 -0
  274. package/storybook-static/static/media/send.d298db52aafdb846a46c9d180ad45946.svg +3 -0
  275. package/storybook-static/static/media/sent.f427753e5502fd7783a08e5f0e0d2f35.svg +3 -0
  276. package/storybook-static/static/media/settings-filled.bd9b60ff4e9eae911e4e2bc69e8e79ca.svg +3 -0
  277. package/storybook-static/static/media/share.7ce8283aa267fb065c568d65b482e211.svg +3 -0
  278. package/storybook-static/static/media/show.de1782527c4a7fa14101dffbfba8aea6.svg +3 -0
  279. package/storybook-static/static/media/speaker-off.fe84597c4b68f4f761e12f789dc58718.svg +3 -0
  280. package/storybook-static/static/media/speaker.e7ff48a73ca43188703b36dfecd932b5.svg +3 -0
  281. package/storybook-static/static/media/stop-record.a2e9d50a0930c24af43d7f357093be81.svg +3 -0
  282. package/storybook-static/static/media/stop-share.d1be236e01dd924ba711e1e17f41054c.svg +3 -0
  283. package/storybook-static/static/media/stream-filled.c40bae61fea25455602a61db5e77fa71.svg +3 -0
  284. package/storybook-static/static/media/stream.700f4f8ce0cee0ae1ef56132867427fe.svg +3 -0
  285. package/storybook-static/static/media/swap-camera.bc3a4652106f5c57d14b4dcbffff08a5.svg +3 -0
  286. package/storybook-static/static/media/text-document.cad7e87368501b96de2a939d08852dcd.svg +3 -0
  287. package/storybook-static/static/media/unarchive.1b1a7438cd8eb6fee80e6ac89baa195b.svg +3 -0
  288. package/storybook-static/static/media/user.911c7ae778615185b285ce0ae4068486.svg +3 -0
  289. package/storybook-static/static/media/video-file.dbd1f8c63a3769f9e9a027f0922d56b2.svg +3 -0
  290. package/storybook-static/static/media/video.bbcc2109285c18eea02ede86920de0dd.svg +3 -0
  291. package/storybook-static/static/media/viewed-delivered.f43360dc87235a6cf574ff53f73dd777.svg +3 -0
  292. package/storybook-static/static/media/voice.b937c8a1f744050bec2cd389ad2a1f3a.svg +3 -0
  293. package/storybook-static/stories.json +1 -0
  294. package/dist/Presentation/providers/ModalContextProvider/Modal.d.ts +0 -14
  295. package/dist/Presentation/providers/ModalContextProvider/ModalContextProvider.d.ts +0 -4
  296. package/dist/Presentation/providers/ModalContextProvider/useModal.d.ts +0 -11
  297. package/dist/Presentation/ui-components/Message/AIAssist/AIAssist.d.ts +0 -9
  298. package/dist/Presentation/ui-components/Message/AITranslate/AITranslate.d.ts +0 -13
  299. package/dist/Presentation/ui-components/MessageItem/MessageItem.d.ts +0 -25
  300. package/src/Presentation/providers/ModalContextProvider/Modal.scss +0 -76
  301. package/src/Presentation/providers/ModalContextProvider/Modal.tsx +0 -80
  302. package/src/Presentation/providers/ModalContextProvider/ModalContextProvider.tsx +0 -38
  303. package/src/Presentation/providers/ModalContextProvider/useModal.ts +0 -39
  304. package/src/Presentation/ui-components/Message/AIAssist/AIAssist.tsx +0 -25
  305. package/src/Presentation/ui-components/Message/AITranslate/AITranslate.tsx +0 -79
  306. package/src/Presentation/ui-components/MessageItem/MessageItem.tsx +0 -332
  307. /package/dist/Presentation/{ui-components/Message → Views/Dialog}/MessageContextMenu/MessageContextMenu.d.ts +0 -0
  308. /package/src/Presentation/{ui-components/Message → Views/Dialog/AIComponents}/AIAssist/AIAssist.scss +0 -0
  309. /package/src/Presentation/{ui-components/Message → Views/Dialog/AIComponents}/AITranslate/AITranslate.scss +0 -0
  310. /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
@@ -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 {};
@@ -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
+ userId?: 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, userId, 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;
@@ -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;