quickblox-react-ui-kit 0.5.1-join-dialog-off.5 → 0.5.2-alpha.1

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 (182) hide show
  1. package/.claude/settings.local.json +14 -0
  2. package/dist/CommonTypes/BaseViewModel.d.ts +0 -2
  3. package/dist/CommonTypes/BaseViewModel.d.ts.map +1 -1
  4. package/dist/Data/mapper/DialogLocalDTOMapper.d.ts.map +1 -1
  5. package/dist/Data/mapper/DialogRemoteDTOMapper.d.ts.map +1 -1
  6. package/dist/Data/repository/ConnectionRepository.d.ts.map +1 -1
  7. package/dist/Data/repository/DialogsRepository.d.ts +0 -4
  8. package/dist/Data/repository/DialogsRepository.d.ts.map +1 -1
  9. package/dist/Data/source/remote/IRemoteDataSource.d.ts +0 -4
  10. package/dist/Data/source/remote/IRemoteDataSource.d.ts.map +1 -1
  11. package/dist/Data/source/remote/Mapper/MessageDTOMapper.d.ts +1 -0
  12. package/dist/Data/source/remote/Mapper/MessageDTOMapper.d.ts.map +1 -1
  13. package/dist/Data/source/remote/RemoteDataSource.d.ts +0 -4
  14. package/dist/Data/source/remote/RemoteDataSource.d.ts.map +1 -1
  15. package/dist/Domain/entity/ChatMessageAttachmentEntity.d.ts +2 -2
  16. package/dist/Domain/entity/ChatMessageAttachmentEntity.d.ts.map +1 -1
  17. package/dist/Domain/entity/FileEntity.d.ts +2 -2
  18. package/dist/Domain/entity/FileEntity.d.ts.map +1 -1
  19. package/dist/Domain/entity/GroupDialogEntity.d.ts +1 -1
  20. package/dist/Domain/entity/GroupDialogEntity.d.ts.map +1 -1
  21. package/dist/Domain/repository/IDialogsRepository.d.ts +0 -4
  22. package/dist/Domain/repository/IDialogsRepository.d.ts.map +1 -1
  23. package/dist/Domain/use_cases/SyncDialogsUseCase.d.ts.map +1 -1
  24. package/dist/Domain/use_cases/UserTypingMessageUseCase.d.ts.map +1 -1
  25. package/dist/Presentation/Views/Dialog/Message/MessageAttachment/AudioAttachment/AudioAttachment.d.ts.map +1 -1
  26. package/dist/Presentation/Views/DialogInfo/DialogInfo.d.ts.map +1 -1
  27. package/dist/Presentation/Views/DialogList/DialogListViewModel.d.ts +1 -5
  28. package/dist/Presentation/Views/DialogList/DialogListViewModel.d.ts.map +1 -1
  29. package/dist/Presentation/Views/DialogList/useDialogListViewModel.d.ts.map +1 -1
  30. package/dist/Presentation/Views/EditDialog/EditDialog.d.ts +0 -5
  31. package/dist/Presentation/Views/EditDialog/EditDialog.d.ts.map +1 -1
  32. package/dist/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.d.ts.map +1 -1
  33. package/dist/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.d.ts.map +1 -1
  34. package/dist/index-ui.js +43513 -59614
  35. package/dist/qb-api-calls/index.d.ts +0 -1
  36. package/dist/qb-api-calls/index.d.ts.map +1 -1
  37. package/package.json +14 -8
  38. package/src/CommonTypes/BaseViewModel.ts +0 -4
  39. package/src/Data/DefaultConfigurations.ts +4 -4
  40. package/src/Data/mapper/DialogLocalDTOMapper.ts +9 -10
  41. package/src/Data/mapper/DialogRemoteDTOMapper.ts +9 -10
  42. package/src/Data/repository/ConnectionRepository.ts +3 -2
  43. package/src/Data/repository/DialogsRepository.ts +0 -85
  44. package/src/Data/source/remote/IRemoteDataSource.ts +0 -12
  45. package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +39 -22
  46. package/src/Data/source/remote/RemoteDataSource.ts +65 -246
  47. package/src/Domain/entity/ChatMessageAttachmentEntity.ts +2 -2
  48. package/src/Domain/entity/FileEntity.ts +2 -2
  49. package/src/Domain/entity/GroupDialogEntity.ts +1 -1
  50. package/src/Domain/repository/IDialogsRepository.ts +0 -12
  51. package/src/Domain/use_cases/SyncDialogsUseCase.ts +3 -3
  52. package/src/Domain/use_cases/UserTypingMessageUseCase.ts +4 -2
  53. package/src/Presentation/Views/Dialog/Message/MessageAttachment/AudioAttachment/AudioAttachment.tsx +4 -9
  54. package/src/Presentation/Views/DialogInfo/DialogInfo.tsx +4 -39
  55. package/src/Presentation/Views/DialogList/DialogListViewModel.ts +1 -5
  56. package/src/Presentation/Views/DialogList/useDialogListViewModel.ts +0 -147
  57. package/src/Presentation/Views/EditDialog/EditDialog.scss +2 -21
  58. package/src/Presentation/Views/EditDialog/EditDialog.tsx +1 -47
  59. package/src/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.tsx +13 -49
  60. package/src/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +2 -2
  61. package/src/Presentation/ui-components/Message/Bubble/AttachmentBubble/AttachmentBubble.tsx +2 -2
  62. package/src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.tsx +2 -2
  63. package/src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.tsx +24 -8
  64. package/src/QBconfig.ts +4 -4
  65. package/src/qb-api-calls/index.ts +2 -59
  66. package/storybook-static/161.77e7dbc5.iframe.bundle.js +2 -0
  67. package/storybook-static/217.cb8da73c.iframe.bundle.js +408 -0
  68. package/storybook-static/217.cb8da73c.iframe.bundle.js.map +1 -0
  69. package/storybook-static/263.f039edee.iframe.bundle.js +2 -0
  70. package/storybook-static/294.7ed84cb5.iframe.bundle.js +1 -0
  71. package/storybook-static/338.ed5286bb.iframe.bundle.js +2 -0
  72. package/storybook-static/363.fe646024.iframe.bundle.js +2 -0
  73. package/storybook-static/{363.64281ecc.iframe.bundle.js.LICENSE.txt → 363.fe646024.iframe.bundle.js.LICENSE.txt} +0 -7
  74. package/storybook-static/364.fb3fc9b4.iframe.bundle.js +1 -0
  75. package/storybook-static/488.a47f0de8.iframe.bundle.js +1 -0
  76. package/storybook-static/559.fdf11e08.iframe.bundle.js +2 -0
  77. package/storybook-static/618.ab5566c8.iframe.bundle.js +1 -0
  78. package/storybook-static/844.5804474b.iframe.bundle.js +95 -0
  79. package/storybook-static/844.5804474b.iframe.bundle.js.map +1 -0
  80. package/storybook-static/936.ba75ae44.iframe.bundle.js +1 -0
  81. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.6977856e.iframe.bundle.js +2 -0
  82. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.d77c6500.iframe.bundle.js +2 -0
  83. package/storybook-static/Presentation-ui-components-Button-Button-stories.05f2f5b7.iframe.bundle.js +2 -0
  84. package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.118df514.iframe.bundle.js +1 -0
  85. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.e9d3dc6b.iframe.bundle.js +2 -0
  86. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.7d74bffa.iframe.bundle.js +2 -0
  87. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.d92e6904.iframe.bundle.js +2 -0
  88. package/storybook-static/Presentation-ui-components-Header-Header-stories.b9a00187.iframe.bundle.js +2 -0
  89. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.f484b131.iframe.bundle.js +2 -0
  90. package/storybook-static/Presentation-ui-components-Message-Message-stories.66867b7e.iframe.bundle.js +2 -0
  91. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.d72f098b.iframe.bundle.js +1 -0
  92. package/storybook-static/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.7d9e0991.iframe.bundle.js +1 -0
  93. package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.1e6bd1cd.iframe.bundle.js +2 -0
  94. package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.44c68c03.iframe.bundle.js +2 -0
  95. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.3e87329b.iframe.bundle.js +2 -0
  96. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.ec3e7d5f.iframe.bundle.js +2 -0
  97. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.2721621c.iframe.bundle.js +1 -0
  98. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.33b23eab.iframe.bundle.js +2 -0
  99. package/storybook-static/docs-Introduction-mdx.416f8bf9.iframe.bundle.js +1 -0
  100. package/storybook-static/docs-Styling-mdx.c119b271.iframe.bundle.js +1 -0
  101. package/storybook-static/iframe.html +5 -3
  102. package/storybook-static/main.bfaba8e3.iframe.bundle.js +1 -0
  103. package/storybook-static/project.json +1 -1
  104. package/storybook-static/runtime~main.b1ec3380.iframe.bundle.js +1 -0
  105. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +27 -27
  106. package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +1 -1
  107. package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +1 -1
  108. package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +74 -71
  109. package/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js +73 -70
  110. package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +1 -1
  111. package/storybook-static/sb-addons/interactions-11/manager-bundle.js +6 -6
  112. package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +18 -18
  113. package/storybook-static/sb-manager/globals-runtime.js +10691 -11043
  114. package/storybook-static/sb-preview/runtime.js +238 -238
  115. package/dist/Domain/use_cases/CreateDialogSetUpAutoJoinUseCase.d.ts +0 -14
  116. package/dist/Domain/use_cases/CreateDialogSetUpAutoJoinUseCase.d.ts.map +0 -1
  117. package/dist/Domain/use_cases/CreateDialogWithAutoJoinUseCase.d.ts +0 -14
  118. package/dist/Domain/use_cases/CreateDialogWithAutoJoinUseCase.d.ts.map +0 -1
  119. package/dist/Domain/use_cases/JoinFromTheDialogUseCase.d.ts +0 -12
  120. package/dist/Domain/use_cases/JoinFromTheDialogUseCase.d.ts.map +0 -1
  121. package/dist/Domain/use_cases/UnJoinFromTheDialogUseCase.d.ts +0 -12
  122. package/dist/Domain/use_cases/UnJoinFromTheDialogUseCase.d.ts.map +0 -1
  123. package/src/Domain/use_cases/CreateDialogSetUpAutoJoinUseCase.ts +0 -77
  124. package/src/Domain/use_cases/CreateDialogWithAutoJoinUseCase.ts +0 -77
  125. package/src/Domain/use_cases/JoinFromTheDialogUseCase.ts +0 -61
  126. package/src/Domain/use_cases/UnJoinFromTheDialogUseCase.ts +0 -61
  127. package/storybook-static/161.53da4e03.iframe.bundle.js +0 -2
  128. package/storybook-static/167.88fc69a9.iframe.bundle.js +0 -1
  129. package/storybook-static/217.bd248edb.iframe.bundle.js +0 -405
  130. package/storybook-static/217.bd248edb.iframe.bundle.js.map +0 -1
  131. package/storybook-static/294.b81cdbca.iframe.bundle.js +0 -1
  132. package/storybook-static/363.64281ecc.iframe.bundle.js +0 -2
  133. package/storybook-static/364.988cd801.iframe.bundle.js +0 -1
  134. package/storybook-static/488.3cd3942e.iframe.bundle.js +0 -1
  135. package/storybook-static/559.9e64a6f5.iframe.bundle.js +0 -2
  136. package/storybook-static/735.3121b1b2.iframe.bundle.js +0 -2
  137. package/storybook-static/844.815b57b5.iframe.bundle.js +0 -95
  138. package/storybook-static/844.815b57b5.iframe.bundle.js.map +0 -1
  139. package/storybook-static/936.8546c1d8.iframe.bundle.js +0 -1
  140. package/storybook-static/961.d47fc2bc.iframe.bundle.js +0 -2
  141. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.a1656796.iframe.bundle.js +0 -2
  142. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.58880259.iframe.bundle.js +0 -2
  143. package/storybook-static/Presentation-ui-components-Button-Button-stories.f456d20f.iframe.bundle.js +0 -2
  144. package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.cd797979.iframe.bundle.js +0 -1
  145. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.2dae7689.iframe.bundle.js +0 -2
  146. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.cd0c68a8.iframe.bundle.js +0 -2
  147. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.c88a1bf9.iframe.bundle.js +0 -2
  148. package/storybook-static/Presentation-ui-components-Header-Header-stories.dd4b2b7b.iframe.bundle.js +0 -2
  149. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.500e777d.iframe.bundle.js +0 -2
  150. package/storybook-static/Presentation-ui-components-Message-Message-stories.93af3d2d.iframe.bundle.js +0 -2
  151. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.d1c68a8a.iframe.bundle.js +0 -1
  152. package/storybook-static/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.2b4362f7.iframe.bundle.js +0 -1
  153. package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.34dfadb1.iframe.bundle.js +0 -2
  154. package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.9b4eff15.iframe.bundle.js +0 -2
  155. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.8574dbe1.iframe.bundle.js +0 -2
  156. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.058998bf.iframe.bundle.js +0 -2
  157. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.c4dfb1a6.iframe.bundle.js +0 -1
  158. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.371bcb5d.iframe.bundle.js +0 -2
  159. package/storybook-static/docs-Introduction-mdx.5addfa61.iframe.bundle.js +0 -1
  160. package/storybook-static/docs-Styling-mdx.9f4235f1.iframe.bundle.js +0 -1
  161. package/storybook-static/main.d176ed27.iframe.bundle.js +0 -1
  162. package/storybook-static/runtime~main.bc0704e8.iframe.bundle.js +0 -1
  163. /package/storybook-static/{161.53da4e03.iframe.bundle.js.LICENSE.txt → 161.77e7dbc5.iframe.bundle.js.LICENSE.txt} +0 -0
  164. /package/storybook-static/{217.bd248edb.iframe.bundle.js.LICENSE.txt → 217.cb8da73c.iframe.bundle.js.LICENSE.txt} +0 -0
  165. /package/storybook-static/{961.d47fc2bc.iframe.bundle.js.LICENSE.txt → 263.f039edee.iframe.bundle.js.LICENSE.txt} +0 -0
  166. /package/storybook-static/{735.3121b1b2.iframe.bundle.js.LICENSE.txt → 338.ed5286bb.iframe.bundle.js.LICENSE.txt} +0 -0
  167. /package/storybook-static/{559.9e64a6f5.iframe.bundle.js.LICENSE.txt → 559.fdf11e08.iframe.bundle.js.LICENSE.txt} +0 -0
  168. /package/storybook-static/{844.815b57b5.iframe.bundle.js.LICENSE.txt → 844.5804474b.iframe.bundle.js.LICENSE.txt} +0 -0
  169. /package/storybook-static/{Presentation-ui-components-Avatar-avatar-stories.a1656796.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Avatar-avatar-stories.6977856e.iframe.bundle.js.LICENSE.txt} +0 -0
  170. /package/storybook-static/{Presentation-ui-components-Badge-Badge-stories.58880259.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Badge-Badge-stories.d77c6500.iframe.bundle.js.LICENSE.txt} +0 -0
  171. /package/storybook-static/{Presentation-ui-components-Button-Button-stories.f456d20f.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Button-Button-stories.05f2f5b7.iframe.bundle.js.LICENSE.txt} +0 -0
  172. /package/storybook-static/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.2dae7689.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.e9d3dc6b.iframe.bundle.js.LICENSE.txt} +0 -0
  173. /package/storybook-static/{Presentation-ui-components-DialogWindow-DialogWindow-stories.cd0c68a8.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-DialogWindow-DialogWindow-stories.7d74bffa.iframe.bundle.js.LICENSE.txt} +0 -0
  174. /package/storybook-static/{Presentation-ui-components-Dropdown-Dropdown-stories.c88a1bf9.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Dropdown-Dropdown-stories.d92e6904.iframe.bundle.js.LICENSE.txt} +0 -0
  175. /package/storybook-static/{Presentation-ui-components-Header-Header-stories.dd4b2b7b.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Header-Header-stories.b9a00187.iframe.bundle.js.LICENSE.txt} +0 -0
  176. /package/storybook-static/{Presentation-ui-components-Loader-Loader-stories.500e777d.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Loader-Loader-stories.f484b131.iframe.bundle.js.LICENSE.txt} +0 -0
  177. /package/storybook-static/{Presentation-ui-components-Message-Message-stories.93af3d2d.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Message-Message-stories.66867b7e.iframe.bundle.js.LICENSE.txt} +0 -0
  178. /package/storybook-static/{Presentation-ui-components-Placeholder-Placeholder-stories.34dfadb1.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Placeholder-Placeholder-stories.1e6bd1cd.iframe.bundle.js.LICENSE.txt} +0 -0
  179. /package/storybook-static/{Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.9b4eff15.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.44c68c03.iframe.bundle.js.LICENSE.txt} +0 -0
  180. /package/storybook-static/{Presentation-ui-components-SettingsItem-SettingsItem-stories.8574dbe1.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-SettingsItem-SettingsItem-stories.3e87329b.iframe.bundle.js.LICENSE.txt} +0 -0
  181. /package/storybook-static/{Presentation-ui-components-TextField-TextField-stories.058998bf.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-TextField-TextField-stories.ec3e7d5f.iframe.bundle.js.LICENSE.txt} +0 -0
  182. /package/storybook-static/{Presentation-ui-components-UserListItem-UserListItem-stories.371bcb5d.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-UserListItem-UserListItem-stories.33b23eab.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -1,14 +0,0 @@
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
- import EventMessagesRepository from '../../Data/repository/EventMessagesRepository';
6
- export declare class CreateDialogSetUpAutoJoinUseCase implements IUseCase<void, DialogEntity> {
7
- private dialogRepository;
8
- private eventMessagesRepository;
9
- private newDialog;
10
- private textInformationMessage;
11
- constructor(eventMessagesRepository: EventMessagesRepository, dialogRepository: DialogsRepository, newDialog: GroupDialogEntity, textInformationMessage: string);
12
- execute(): Promise<DialogEntity>;
13
- }
14
- //# sourceMappingURL=CreateDialogSetUpAutoJoinUseCase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateDialogSetUpAutoJoinUseCase.d.ts","sourceRoot":"","sources":["../../../src/Domain/use_cases/CreateDialogSetUpAutoJoinUseCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,iBAAiB,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAIhE,OAAO,uBAAuB,MAAM,+CAA+C,CAAC;AAGpF,qBAAa,gCAAiC,YAAW,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IACnF,OAAO,CAAC,gBAAgB,CAAoB;IAE5C,OAAO,CAAC,uBAAuB,CAA0B;IAEzD,OAAO,CAAC,SAAS,CAAoB;IAErC,OAAO,CAAC,sBAAsB,CAAS;gBAGrC,uBAAuB,EAAE,uBAAuB,EAChD,gBAAgB,EAAE,iBAAiB,EACnC,SAAS,EAAE,iBAAiB,EAC5B,sBAAsB,EAAE,MAAM;IAQ1B,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC;CA6CvC"}
@@ -1,14 +0,0 @@
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
- import EventMessagesRepository from '../../Data/repository/EventMessagesRepository';
6
- export declare class CreateDialogWithAutoJoinUseCase implements IUseCase<void, DialogEntity> {
7
- private dialogRepository;
8
- private eventMessagesRepository;
9
- private newDialog;
10
- private textInformationMessage;
11
- constructor(eventMessagesRepository: EventMessagesRepository, dialogRepository: DialogsRepository, newDialog: GroupDialogEntity, textInformationMessage: string);
12
- execute(): Promise<DialogEntity>;
13
- }
14
- //# sourceMappingURL=CreateDialogWithAutoJoinUseCase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateDialogWithAutoJoinUseCase.d.ts","sourceRoot":"","sources":["../../../src/Domain/use_cases/CreateDialogWithAutoJoinUseCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,iBAAiB,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAIhE,OAAO,uBAAuB,MAAM,+CAA+C,CAAC;AAGpF,qBAAa,+BAAgC,YAAW,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAClF,OAAO,CAAC,gBAAgB,CAAoB;IAE5C,OAAO,CAAC,uBAAuB,CAA0B;IAEzD,OAAO,CAAC,SAAS,CAAoB;IAErC,OAAO,CAAC,sBAAsB,CAAS;gBAGrC,uBAAuB,EAAE,uBAAuB,EAChD,gBAAgB,EAAE,iBAAiB,EACnC,SAAS,EAAE,iBAAiB,EAC5B,sBAAsB,EAAE,MAAM;IAQ1B,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC;CA6CvC"}
@@ -1,12 +0,0 @@
1
- import { IUseCase } from './base/IUseCase';
2
- import DialogsRepository from '../../Data/repository/DialogsRepository';
3
- import EventMessagesRepository from '../../Data/repository/EventMessagesRepository';
4
- import { DialogEntity } from '../entity/DialogEntity';
5
- export declare class JoinFromTheDialogUseCase implements IUseCase<void, boolean> {
6
- private dialogRepository;
7
- private eventMessagesRepository;
8
- private dialogToLeave;
9
- constructor(eventMessagesRepository: EventMessagesRepository, dialogRepository: DialogsRepository, dialog: DialogEntity);
10
- execute(): Promise<boolean>;
11
- }
12
- //# sourceMappingURL=JoinFromTheDialogUseCase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JoinFromTheDialogUseCase.d.ts","sourceRoot":"","sources":["../../../src/Domain/use_cases/JoinFromTheDialogUseCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,iBAAiB,MAAM,yCAAyC,CAAC;AACxE,OAAO,uBAAuB,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAStD,qBAAa,wBACX,YAAW,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAElC,OAAO,CAAC,gBAAgB,CAAoB;IAE5C,OAAO,CAAC,uBAAuB,CAA0B;IAEzD,OAAO,CAAC,aAAa,CAAe;gBAGlC,uBAAuB,EAAE,uBAAuB,EAChD,gBAAgB,EAAE,iBAAiB,EACnC,MAAM,EAAE,YAAY;IAOhB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;CA6BlC"}
@@ -1,12 +0,0 @@
1
- import { IUseCase } from './base/IUseCase';
2
- import DialogsRepository from '../../Data/repository/DialogsRepository';
3
- import EventMessagesRepository from '../../Data/repository/EventMessagesRepository';
4
- import { DialogEntity } from '../entity/DialogEntity';
5
- export declare class UnJoinFromTheDialogUseCase implements IUseCase<void, boolean> {
6
- private dialogRepository;
7
- private eventMessagesRepository;
8
- private dialogToLeave;
9
- constructor(eventMessagesRepository: EventMessagesRepository, dialogRepository: DialogsRepository, dialog: DialogEntity);
10
- execute(): Promise<boolean>;
11
- }
12
- //# sourceMappingURL=UnJoinFromTheDialogUseCase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnJoinFromTheDialogUseCase.d.ts","sourceRoot":"","sources":["../../../src/Domain/use_cases/UnJoinFromTheDialogUseCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,iBAAiB,MAAM,yCAAyC,CAAC;AACxE,OAAO,uBAAuB,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAStD,qBAAa,0BACX,YAAW,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAElC,OAAO,CAAC,gBAAgB,CAAoB;IAE5C,OAAO,CAAC,uBAAuB,CAA0B;IAEzD,OAAO,CAAC,aAAa,CAAe;gBAGlC,uBAAuB,EAAE,uBAAuB,EAChD,gBAAgB,EAAE,iBAAiB,EACnC,MAAM,EAAE,YAAY;IAOhB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;CA6BlC"}
@@ -1,77 +0,0 @@
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
- import { stringifyError } from '../../utils/parse';
6
- import { RemoteMessageDTO } from '../../Data/dto/message/RemoteMessageDTO';
7
- import { NotificationTypes } from '../entity/NotificationTypes';
8
- import EventMessagesRepository from '../../Data/repository/EventMessagesRepository';
9
- import EventMessageType from '../entity/EventMessageType';
10
-
11
- export class CreateDialogSetUpAutoJoinUseCase implements IUseCase<void, DialogEntity> {
12
- private dialogRepository: DialogsRepository;
13
-
14
- private eventMessagesRepository: EventMessagesRepository;
15
-
16
- private newDialog: GroupDialogEntity;
17
-
18
- private textInformationMessage: string;
19
-
20
- constructor(
21
- eventMessagesRepository: EventMessagesRepository,
22
- dialogRepository: DialogsRepository,
23
- newDialog: GroupDialogEntity,
24
- textInformationMessage: string,
25
- ) {
26
- this.dialogRepository = dialogRepository;
27
- this.newDialog = newDialog;
28
- this.eventMessagesRepository = eventMessagesRepository;
29
- this.textInformationMessage = textInformationMessage;
30
- }
31
-
32
- async execute(): Promise<DialogEntity> {
33
- console.log('execute CreateDialogSetUpAutoJoinUseCase', JSON.stringify(this.newDialog));
34
- const result: DialogEntity = await this.dialogRepository
35
- .createDialogSetUpAutojoinInRemote(this.newDialog)
36
- .catch((e) => {
37
- const message = stringifyError(e);
38
-
39
- console.log('EXCEPTION IN CREATE DIALOG WITH SET UP AUTO JOIN USE CASE', message);
40
- throw Error(message);
41
- });
42
-
43
- await this.dialogRepository.saveDialogToLocal(result);
44
-
45
- this.eventMessagesRepository.dispatchEvent<DialogEntity>(
46
- EventMessageType.LocalMessage,
47
- result,
48
- [],
49
- );
50
- const remoteMessageDTO: RemoteMessageDTO = new RemoteMessageDTO();
51
-
52
- remoteMessageDTO.dialogId = result.id;
53
- remoteMessageDTO.notification_type = NotificationTypes.NEW_DIALOG;
54
-
55
- this.eventMessagesRepository.dispatchEvent<RemoteMessageDTO>(
56
- EventMessageType.SystemMessage,
57
- remoteMessageDTO,
58
- [...this.newDialog.participantIds],
59
- );
60
-
61
- remoteMessageDTO.dialogId = result.id;
62
- remoteMessageDTO.notification_type = NotificationTypes.NEW_DIALOG;
63
- remoteMessageDTO.date_sent = Date.now() / 1000;
64
- remoteMessageDTO.message =
65
- this.textInformationMessage && this.textInformationMessage.length > 0
66
- ? this.textInformationMessage
67
- : `User ${this.newDialog.ownerId} create new dialog ${this.newDialog.name}`;
68
-
69
- this.eventMessagesRepository.dispatchEvent<RemoteMessageDTO>(
70
- EventMessageType.RegularMessage,
71
- remoteMessageDTO,
72
- [...this.newDialog.participantIds],
73
- );
74
-
75
- return Promise.resolve(result);
76
- }
77
- }
@@ -1,77 +0,0 @@
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
- import { stringifyError } from '../../utils/parse';
6
- import { RemoteMessageDTO } from '../../Data/dto/message/RemoteMessageDTO';
7
- import { NotificationTypes } from '../entity/NotificationTypes';
8
- import EventMessagesRepository from '../../Data/repository/EventMessagesRepository';
9
- import EventMessageType from '../entity/EventMessageType';
10
-
11
- export class CreateDialogWithAutoJoinUseCase implements IUseCase<void, DialogEntity> {
12
- private dialogRepository: DialogsRepository;
13
-
14
- private eventMessagesRepository: EventMessagesRepository;
15
-
16
- private newDialog: GroupDialogEntity;
17
-
18
- private textInformationMessage: string;
19
-
20
- constructor(
21
- eventMessagesRepository: EventMessagesRepository,
22
- dialogRepository: DialogsRepository,
23
- newDialog: GroupDialogEntity,
24
- textInformationMessage: string,
25
- ) {
26
- this.dialogRepository = dialogRepository;
27
- this.newDialog = newDialog;
28
- this.eventMessagesRepository = eventMessagesRepository;
29
- this.textInformationMessage = textInformationMessage;
30
- }
31
-
32
- async execute(): Promise<DialogEntity> {
33
- console.log('execute CreateDialogWithAutoJoinUseCase', JSON.stringify(this.newDialog));
34
- const result: DialogEntity = await this.dialogRepository
35
- .createDialogWithAutojoinInRemote(this.newDialog)
36
- .catch((e) => {
37
- const message = stringifyError(e);
38
-
39
- console.log('EXCEPTION IN CREATE DIALOG WITH AUTO JOIN USE CASE', message);
40
- throw Error(message);
41
- });
42
-
43
- await this.dialogRepository.saveDialogToLocal(result);
44
-
45
- this.eventMessagesRepository.dispatchEvent<DialogEntity>(
46
- EventMessageType.LocalMessage,
47
- result,
48
- [],
49
- );
50
- const remoteMessageDTO: RemoteMessageDTO = new RemoteMessageDTO();
51
-
52
- remoteMessageDTO.dialogId = result.id;
53
- remoteMessageDTO.notification_type = NotificationTypes.NEW_DIALOG;
54
-
55
- this.eventMessagesRepository.dispatchEvent<RemoteMessageDTO>(
56
- EventMessageType.SystemMessage,
57
- remoteMessageDTO,
58
- [...this.newDialog.participantIds],
59
- );
60
-
61
- remoteMessageDTO.dialogId = result.id;
62
- remoteMessageDTO.notification_type = NotificationTypes.NEW_DIALOG;
63
- remoteMessageDTO.date_sent = Date.now() / 1000;
64
- remoteMessageDTO.message =
65
- this.textInformationMessage && this.textInformationMessage.length > 0
66
- ? this.textInformationMessage
67
- : `User ${this.newDialog.ownerId} create new dialog ${this.newDialog.name}`;
68
-
69
- this.eventMessagesRepository.dispatchEvent<RemoteMessageDTO>(
70
- EventMessageType.RegularMessage,
71
- remoteMessageDTO,
72
- [...this.newDialog.participantIds],
73
- );
74
-
75
- return Promise.resolve(result);
76
- }
77
- }
@@ -1,61 +0,0 @@
1
- import { IUseCase } from './base/IUseCase';
2
- import DialogsRepository from '../../Data/repository/DialogsRepository';
3
- import EventMessagesRepository from '../../Data/repository/EventMessagesRepository';
4
- import { DialogEntity } from '../entity/DialogEntity';
5
- import { RemoteMessageDTO } from '../../Data/dto/message/RemoteMessageDTO';
6
- import { DialogType } from '../entity/DialogTypes';
7
- import { GroupDialogEntity } from '../entity/GroupDialogEntity';
8
- import { PrivateDialogEntity } from '../entity/PrivateDialogEntity';
9
- import { NotificationTypes } from '../entity/NotificationTypes';
10
- import EventMessageType from '../entity/EventMessageType';
11
- import { stringifyError } from '../../utils/parse';
12
-
13
- export class JoinFromTheDialogUseCase
14
- implements IUseCase<void, boolean>
15
- {
16
- private dialogRepository: DialogsRepository;
17
-
18
- private eventMessagesRepository: EventMessagesRepository;
19
-
20
- private dialogToLeave: DialogEntity;
21
-
22
- constructor(
23
- eventMessagesRepository: EventMessagesRepository,
24
- dialogRepository: DialogsRepository,
25
- dialog: DialogEntity,
26
- ) {
27
- this.eventMessagesRepository = eventMessagesRepository;
28
- this.dialogRepository = dialogRepository;
29
- this.dialogToLeave = dialog;
30
- }
31
-
32
- async execute(): Promise<boolean> {
33
- console.log('execute JoinFromTheDialogUseCase');
34
- let resultOperation = false;
35
-
36
- const remoteMessageDTO: RemoteMessageDTO = new RemoteMessageDTO();
37
-
38
- remoteMessageDTO.dialogId = this.dialogToLeave.id;
39
- remoteMessageDTO.notification_type = NotificationTypes.DELETE_LEAVE_DIALOG;
40
- remoteMessageDTO.date_sent = Date.now();
41
-
42
- await this.dialogRepository
43
- .joinUsersFromDialog(this.dialogToLeave.id)
44
- .then(() => {
45
- resultOperation = true;
46
- console.log('join to Dialog successes');
47
-
48
- return resultOperation;
49
- })
50
- .catch((reason) => {
51
- console.log(
52
- 'have exception in delete users from Dialog : ',
53
- stringifyError(reason),
54
- );
55
- resultOperation = false;
56
- });
57
-
58
-
59
- return resultOperation;
60
- }
61
- }
@@ -1,61 +0,0 @@
1
- import { IUseCase } from './base/IUseCase';
2
- import DialogsRepository from '../../Data/repository/DialogsRepository';
3
- import EventMessagesRepository from '../../Data/repository/EventMessagesRepository';
4
- import { DialogEntity } from '../entity/DialogEntity';
5
- import { RemoteMessageDTO } from '../../Data/dto/message/RemoteMessageDTO';
6
- import { DialogType } from '../entity/DialogTypes';
7
- import { GroupDialogEntity } from '../entity/GroupDialogEntity';
8
- import { PrivateDialogEntity } from '../entity/PrivateDialogEntity';
9
- import { NotificationTypes } from '../entity/NotificationTypes';
10
- import EventMessageType from '../entity/EventMessageType';
11
- import { stringifyError } from '../../utils/parse';
12
-
13
- export class UnJoinFromTheDialogUseCase
14
- implements IUseCase<void, boolean>
15
- {
16
- private dialogRepository: DialogsRepository;
17
-
18
- private eventMessagesRepository: EventMessagesRepository;
19
-
20
- private dialogToLeave: DialogEntity;
21
-
22
- constructor(
23
- eventMessagesRepository: EventMessagesRepository,
24
- dialogRepository: DialogsRepository,
25
- dialog: DialogEntity,
26
- ) {
27
- this.eventMessagesRepository = eventMessagesRepository;
28
- this.dialogRepository = dialogRepository;
29
- this.dialogToLeave = dialog;
30
- }
31
-
32
- async execute(): Promise<boolean> {
33
- console.log('execute UnJoinFromTheDialogUseCase');
34
- let resultOperation = false;
35
-
36
- const remoteMessageDTO: RemoteMessageDTO = new RemoteMessageDTO();
37
-
38
- remoteMessageDTO.dialogId = this.dialogToLeave.id;
39
- remoteMessageDTO.notification_type = NotificationTypes.DELETE_LEAVE_DIALOG;
40
- remoteMessageDTO.date_sent = Date.now();
41
-
42
- await this.dialogRepository
43
- .unjoinUsersFromDialog(this.dialogToLeave.id)
44
- .then(() => {
45
- resultOperation = true;
46
- console.log('Leave from Dialog successes');
47
-
48
- return resultOperation;
49
- })
50
- .catch((reason) => {
51
- console.log(
52
- 'have exception in leave Dialog : ',
53
- stringifyError(reason),
54
- );
55
- resultOperation = false;
56
- });
57
-
58
-
59
- return resultOperation;
60
- }
61
- }
@@ -1,2 +0,0 @@
1
- /*! For license information please see 161.53da4e03.iframe.bundle.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[161],{"./node_modules/react-dom/cjs/react-dom-test-utils.production.js":(__unused_webpack_module,exports,__webpack_require__)=>{var React=__webpack_require__("./node_modules/react/index.js"),didWarnAboutUsingAct=!1;exports.act=function(callback){return!1===didWarnAboutUsingAct&&(didWarnAboutUsingAct=!0,console.error("`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.")),React.act(callback)}},"./node_modules/react-dom/test-utils.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/react-dom/cjs/react-dom-test-utils.production.js")}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[167],{"./node_modules/@storybook/addon-docs/dist/DocsRenderer-CFRXHY34.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{DocsRenderer:()=>DocsRenderer});var react=__webpack_require__("./node_modules/react/index.js"),dist=__webpack_require__("./node_modules/@storybook/blocks/dist/index.mjs"),react_18=__webpack_require__("./node_modules/@storybook/react-dom-shim/dist/react-18.mjs"),defaultComponents={code:dist.XA,a:dist.zE,...dist.Sw},ErrorBoundary=class extends react.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err)}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:react.createElement(react.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=dist.kQ;return new Promise(((resolve,reject)=>{__webpack_require__.e(294).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@mdx-js/react/index.js")).then((({MDXProvider})=>(0,react_18.renderElement)(react.createElement(ErrorBoundary,{showException:reject,key:Math.random()},react.createElement(MDXProvider,{components},react.createElement(TDocs,{context,docsParameter}))),element))).then((()=>resolve()))}))},this.unmount=element=>{(0,react_18.unmountElement)(element)}}};__webpack_require__("./node_modules/@storybook/addon-docs/dist/chunk-H6MOWX77.mjs")},"./node_modules/@storybook/blocks/dist sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/blocks/dist sync recursive",module.exports=webpackEmptyContext},"./node_modules/@storybook/core/dist/components sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/core/dist/components sync recursive",module.exports=webpackEmptyContext},"./node_modules/@storybook/core/dist/theming sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/core/dist/theming sync recursive",module.exports=webpackEmptyContext}}]);