@vlprojects-chat/chat 0.0.58 → 0.5.12

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 (254) hide show
  1. package/README.md +1 -0
  2. package/build/main.js +173 -0
  3. package/package.json +90 -91
  4. package/dist/App.d.ts +0 -3
  5. package/dist/Chat.d.ts +0 -10
  6. package/dist/api/Api.d.ts +0 -10
  7. package/dist/api/index.d.ts +0 -1
  8. package/dist/components/ChannelList/ChannelList.d.ts +0 -3
  9. package/dist/components/ChannelList/components/LastMessage/LastMessage.d.ts +0 -7
  10. package/dist/components/ChannelList/components/LastMessage/index.d.ts +0 -1
  11. package/dist/components/ChannelList/index.d.ts +0 -1
  12. package/dist/components/ChannelList/styles.d.ts +0 -2
  13. package/dist/components/CreateChannelForm/index.d.ts +0 -6
  14. package/dist/components/CreateChannelForm/styles.d.ts +0 -2
  15. package/dist/components/DirectList/DirectList.d.ts +0 -3
  16. package/dist/components/DirectList/components/DirectListRow/DirectListRow.d.ts +0 -11
  17. package/dist/components/DirectList/components/DirectListRow/index.d.ts +0 -1
  18. package/dist/components/DirectList/components/DirectListRow/styles.d.ts +0 -2
  19. package/dist/components/DirectList/index.d.ts +0 -1
  20. package/dist/components/DirectList/service.d.ts +0 -6
  21. package/dist/components/Drawer/index.d.ts +0 -8
  22. package/dist/components/Drawer/styles.d.ts +0 -2
  23. package/dist/components/LoadingStatus/LoadingStatus.d.ts +0 -6
  24. package/dist/components/LoadingStatus/index.d.ts +0 -1
  25. package/dist/components/LoadingStatus/styles.d.ts +0 -2
  26. package/dist/components/MessageInput/MessageInput.d.ts +0 -8
  27. package/dist/components/MessageInput/components/MessageInputActions/MessageInputActions.d.ts +0 -5
  28. package/dist/components/MessageInput/components/MessageInputActions/index.d.ts +0 -1
  29. package/dist/components/MessageInput/index.d.ts +0 -1
  30. package/dist/components/MessageInput/styles.d.ts +0 -2
  31. package/dist/components/MessageList/MessageList.d.ts +0 -6
  32. package/dist/components/MessageList/components/MessageActions/MessageActions.d.ts +0 -9
  33. package/dist/components/MessageList/components/MessageActions/index.d.ts +0 -1
  34. package/dist/components/MessageList/components/MessageRow/MessageRow.d.ts +0 -11
  35. package/dist/components/MessageList/components/MessageRow/index.d.ts +0 -1
  36. package/dist/components/MessageList/components/SystemMessage/SystemMessage.d.ts +0 -7
  37. package/dist/components/MessageList/components/SystemMessage/components/ChangedChannel/ChangedChannel.d.ts +0 -7
  38. package/dist/components/MessageList/components/SystemMessage/components/ChangedChannel/index.d.ts +0 -1
  39. package/dist/components/MessageList/components/SystemMessage/components/UserChanged/UserChanged.d.ts +0 -7
  40. package/dist/components/MessageList/components/SystemMessage/components/UserChanged/index.d.ts +0 -1
  41. package/dist/components/MessageList/components/SystemMessage/components/UserChangedChannel/UserChangedChannel.d.ts +0 -7
  42. package/dist/components/MessageList/components/SystemMessage/components/UserChangedChannel/index.d.ts +0 -1
  43. package/dist/components/MessageList/components/SystemMessage/components/UserJoined/UserJoined.d.ts +0 -7
  44. package/dist/components/MessageList/components/SystemMessage/components/UserJoined/index.d.ts +0 -1
  45. package/dist/components/MessageList/components/SystemMessage/index.d.ts +0 -1
  46. package/dist/components/MessageList/components/SystemMessage/styles.d.ts +0 -2
  47. package/dist/components/MessageList/components/UserMessage/UserMessage.d.ts +0 -12
  48. package/dist/components/MessageList/components/UserMessage/components/UserMessageAvatar/UserMessageAvatar.d.ts +0 -7
  49. package/dist/components/MessageList/components/UserMessage/components/UserMessageAvatar/index.d.ts +0 -1
  50. package/dist/components/MessageList/components/UserMessage/components/UserMessageDisplayName/UserMessageDisplayName.d.ts +0 -8
  51. package/dist/components/MessageList/components/UserMessage/components/UserMessageDisplayName/index.d.ts +0 -1
  52. package/dist/components/MessageList/components/UserMessage/components/UserMessageDisplayName/styles.d.ts +0 -2
  53. package/dist/components/MessageList/components/UserMessage/index.d.ts +0 -1
  54. package/dist/components/MessageList/components/UserMessage/styles.d.ts +0 -5
  55. package/dist/components/MessageList/index.d.ts +0 -1
  56. package/dist/components/MessageList/styles.d.ts +0 -2
  57. package/dist/components/NameInput/index.d.ts +0 -6
  58. package/dist/components/NameInput/styles.d.ts +0 -2
  59. package/dist/components/PinnedMessageList/PinnedMessageList.d.ts +0 -3
  60. package/dist/components/PinnedMessageList/index.d.ts +0 -1
  61. package/dist/components/PinnedMessageList/styles.d.ts +0 -2
  62. package/dist/components/PollStatusBadge/PollStatusBadge.d.ts +0 -8
  63. package/dist/components/PollStatusBadge/index.d.ts +0 -1
  64. package/dist/components/Router/index.d.ts +0 -6
  65. package/dist/components/SubHeader/SubHeader.d.ts +0 -6
  66. package/dist/components/SubHeader/index.d.ts +0 -1
  67. package/dist/components/SubHeader/styles.d.ts +0 -2
  68. package/dist/containers/Auth/Auth.d.ts +0 -4
  69. package/dist/containers/Auth/components/ActionBlock/ActionBlock.d.ts +0 -12
  70. package/dist/containers/Auth/components/ActionBlock/index.d.ts +0 -1
  71. package/dist/containers/Auth/components/ActionBlock/styles.d.ts +0 -2
  72. package/dist/containers/Auth/components/Guest/Guest.d.ts +0 -3
  73. package/dist/containers/Auth/components/Guest/index.d.ts +0 -1
  74. package/dist/containers/Auth/components/Guest/styles.d.ts +0 -2
  75. package/dist/containers/Auth/components/Signin/Signin.d.ts +0 -6
  76. package/dist/containers/Auth/components/Signin/index.d.ts +0 -1
  77. package/dist/containers/Auth/components/Signin/styles.d.ts +0 -2
  78. package/dist/containers/Auth/components/Signup/Signup.d.ts +0 -6
  79. package/dist/containers/Auth/components/Signup/index.d.ts +0 -1
  80. package/dist/containers/Auth/components/Signup/styles.d.ts +0 -2
  81. package/dist/containers/Auth/const.d.ts +0 -2
  82. package/dist/containers/Auth/index.d.ts +0 -1
  83. package/dist/containers/Auth/styles.d.ts +0 -2
  84. package/dist/containers/AuthLayout/index.d.ts +0 -7
  85. package/dist/containers/ChannelPage/ChannelPage.d.ts +0 -3
  86. package/dist/containers/ChannelPage/components/ChannelPageHeader/ChannelPageHeader.d.ts +0 -8
  87. package/dist/containers/ChannelPage/components/ChannelPageHeader/index.d.ts +0 -1
  88. package/dist/containers/ChannelPage/index.d.ts +0 -1
  89. package/dist/containers/ChannelPage/service.d.ts +0 -8
  90. package/dist/containers/ChannelPage/styles.d.ts +0 -2
  91. package/dist/containers/Channels/Channels.d.ts +0 -7
  92. package/dist/containers/Channels/components/ChannelsHeader/ChannelsHeader.d.ts +0 -6
  93. package/dist/containers/Channels/components/ChannelsHeader/index.d.ts +0 -1
  94. package/dist/containers/Channels/components/ChannelsHeader/styles.d.ts +0 -2
  95. package/dist/containers/Channels/components/Footer/Footer.d.ts +0 -3
  96. package/dist/containers/Channels/components/Footer/index.d.ts +0 -1
  97. package/dist/containers/Channels/components/Footer/styles.d.ts +0 -2
  98. package/dist/containers/Channels/index.d.ts +0 -1
  99. package/dist/containers/CreatePollPage/CreatePollPage.d.ts +0 -3
  100. package/dist/containers/CreatePollPage/components/CreatePollForm/CreatePollForm.d.ts +0 -7
  101. package/dist/containers/CreatePollPage/components/CreatePollForm/index.d.ts +0 -1
  102. package/dist/containers/CreatePollPage/components/CreatePollForm/styles.d.ts +0 -2
  103. package/dist/containers/CreatePollPage/components/CreatePollForm/validate.d.ts +0 -7
  104. package/dist/containers/CreatePollPage/components/SelectPollType/SelectPollType.d.ts +0 -9
  105. package/dist/containers/CreatePollPage/components/SelectPollType/index.d.ts +0 -1
  106. package/dist/containers/CreatePollPage/index.d.ts +0 -1
  107. package/dist/containers/CreatePollPage/services.d.ts +0 -2
  108. package/dist/containers/CreatePollPage/types.d.ts +0 -48
  109. package/dist/containers/PollListPage/PollListPage.d.ts +0 -3
  110. package/dist/containers/PollListPage/components/PollAction/PollAction.d.ts +0 -8
  111. package/dist/containers/PollListPage/components/PollAction/index.d.ts +0 -1
  112. package/dist/containers/PollListPage/components/PollAction/styles.d.ts +0 -2
  113. package/dist/containers/PollListPage/components/PollCard/PollCard.d.ts +0 -8
  114. package/dist/containers/PollListPage/components/PollCard/index.d.ts +0 -1
  115. package/dist/containers/PollListPage/components/PollCard/styles.d.ts +0 -2
  116. package/dist/containers/PollListPage/components/TemplateList/TemplateList.d.ts +0 -3
  117. package/dist/containers/PollListPage/components/TemplateList/index.d.ts +0 -1
  118. package/dist/containers/PollListPage/index.d.ts +0 -1
  119. package/dist/containers/PollListPage/services.d.ts +0 -20
  120. package/dist/containers/PollModeratorResultPage/PollModeratorResultPage.d.ts +0 -3
  121. package/dist/containers/PollModeratorResultPage/components/ActionButton/ActionButton.d.ts +0 -10
  122. package/dist/containers/PollModeratorResultPage/components/ActionButton/index.d.ts +0 -1
  123. package/dist/containers/PollModeratorResultPage/components/OptionRow/OptionRow.d.ts +0 -7
  124. package/dist/containers/PollModeratorResultPage/components/OptionRow/index.d.ts +0 -1
  125. package/dist/containers/PollModeratorResultPage/components/OptionRowOpenEnded/OptionRowOpenEnded.d.ts +0 -7
  126. package/dist/containers/PollModeratorResultPage/components/OptionRowOpenEnded/index.d.ts +0 -1
  127. package/dist/containers/PollModeratorResultPage/components/OptionRowWrapper/OptionRowWrapper.d.ts +0 -3
  128. package/dist/containers/PollModeratorResultPage/components/OptionRowWrapper/index.d.ts +0 -1
  129. package/dist/containers/PollModeratorResultPage/components/PollModeratorResultCard/PollModeratorResultCard.d.ts +0 -7
  130. package/dist/containers/PollModeratorResultPage/components/PollModeratorResultCard/index.d.ts +0 -1
  131. package/dist/containers/PollModeratorResultPage/index.d.ts +0 -1
  132. package/dist/containers/PollPortal/PollPortal.d.ts +0 -3
  133. package/dist/containers/PollPortal/components/CheckboxGroup/CheckboxGroup.d.ts +0 -8
  134. package/dist/containers/PollPortal/components/CheckboxGroup/index.d.ts +0 -1
  135. package/dist/containers/PollPortal/components/CloseButton/CloseButton.d.ts +0 -3
  136. package/dist/containers/PollPortal/components/CloseButton/index.d.ts +0 -1
  137. package/dist/containers/PollPortal/components/OpenEnded/OpenEnded.d.ts +0 -6
  138. package/dist/containers/PollPortal/components/OpenEnded/index.d.ts +0 -1
  139. package/dist/containers/PollPortal/components/OpenEnded/styles.d.ts +0 -2
  140. package/dist/containers/PollPortal/components/OptionBox/OptionBox.d.ts +0 -10
  141. package/dist/containers/PollPortal/components/OptionBox/index.d.ts +0 -1
  142. package/dist/containers/PollPortal/components/PollVariant/PollVariant.d.ts +0 -9
  143. package/dist/containers/PollPortal/components/PollVariant/index.d.ts +0 -1
  144. package/dist/containers/PollPortal/components/RadioGroup/RadioGroup.d.ts +0 -8
  145. package/dist/containers/PollPortal/components/RadioGroup/index.d.ts +0 -1
  146. package/dist/containers/PollPortal/components/ResultVariant/ResultVariant.d.ts +0 -7
  147. package/dist/containers/PollPortal/components/ResultVariant/index.d.ts +0 -1
  148. package/dist/containers/PollPortal/components/SubmitPollButton/SubmitPollButton.d.ts +0 -8
  149. package/dist/containers/PollPortal/components/SubmitPollButton/index.d.ts +0 -1
  150. package/dist/containers/PollPortal/index.d.ts +0 -1
  151. package/dist/containers/PollPortal/services.d.ts +0 -3
  152. package/dist/containers/PollPortal/styles.d.ts +0 -2
  153. package/dist/containers/PollResultOpenEndedDetailPage/PollResultOpenEndedDetailPage.d.ts +0 -3
  154. package/dist/containers/PollResultOpenEndedDetailPage/index.d.ts +0 -1
  155. package/dist/containers/PollResultOpenEndedDetailPage/styles.d.ts +0 -2
  156. package/dist/containers/Profile/Profile.d.ts +0 -4
  157. package/dist/containers/Profile/index.d.ts +0 -1
  158. package/dist/containers/Profile/styles.d.ts +0 -2
  159. package/dist/containers/SocketLayout/index.d.ts +0 -8
  160. package/dist/containers/UsersListPage/UsersListPage.d.ts +0 -4
  161. package/dist/containers/UsersListPage/components/UserList/UserList.d.ts +0 -7
  162. package/dist/containers/UsersListPage/components/UserList/index.d.ts +0 -1
  163. package/dist/containers/UsersListPage/components/UserRow/UserRow.d.ts +0 -9
  164. package/dist/containers/UsersListPage/components/UserRow/index.d.ts +0 -1
  165. package/dist/containers/UsersListPage/components/UserRow/styles.d.ts +0 -2
  166. package/dist/containers/UsersListPage/index.d.ts +0 -1
  167. package/dist/containers/UsersListPage/services.d.ts +0 -7
  168. package/dist/hoc/FieldHOC.d.ts +0 -8
  169. package/dist/hoc/MoreButtonHOC.d.ts +0 -9
  170. package/dist/hooks/useEventHook.d.ts +0 -4
  171. package/dist/index.d.ts +0 -1
  172. package/dist/index.es.js +0 -407
  173. package/dist/index.js +0 -393
  174. package/dist/keystone/auth.d.ts +0 -27
  175. package/dist/keystone/chat/channel.d.ts +0 -69
  176. package/dist/keystone/chat/index.d.ts +0 -38
  177. package/dist/keystone/chat/message.d.ts +0 -62
  178. package/dist/keystone/chat/pinnedMessage.d.ts +0 -26
  179. package/dist/keystone/chat/poll.d.ts +0 -48
  180. package/dist/keystone/chat/pub.d.ts +0 -13
  181. package/dist/keystone/chat/user.d.ts +0 -27
  182. package/dist/keystone/factory.d.ts +0 -3
  183. package/dist/keystone/index.d.ts +0 -30
  184. package/dist/keystone/service.d.ts +0 -16
  185. package/dist/keystone/settings.d.ts +0 -42
  186. package/dist/keystone/socket.d.ts +0 -19
  187. package/dist/keystone/ui.d.ts +0 -29
  188. package/dist/lib/index.d.ts +0 -2
  189. package/dist/locales/index.d.ts +0 -196
  190. package/dist/routes.d.ts +0 -13
  191. package/dist/sentry/index.d.ts +0 -3
  192. package/dist/theme/consts.d.ts +0 -54
  193. package/dist/theme/muicssbaseline.d.ts +0 -4
  194. package/dist/theme/theme.d.ts +0 -2
  195. package/dist/types/centrifugeEvents.d.ts +0 -6
  196. package/dist/types/const.d.ts +0 -8
  197. package/dist/types/enums.d.ts +0 -24
  198. package/dist/types/serverResponses.d.ts +0 -54
  199. package/dist/types/socketEvents.d.ts +0 -16
  200. package/dist/types/types.d.ts +0 -5
  201. package/dist/ui-kit/HeaderTitle/HeaderTitile.d.ts +0 -8
  202. package/dist/ui-kit/HeaderTitle/index.d.ts +0 -1
  203. package/dist/ui-kit/HeaderTitle/styles.d.ts +0 -2
  204. package/dist/ui-kit/assets/icons/chat-minimize.svg +0 -3
  205. package/dist/ui-kit/assets/icons/icon-checkbox.svg +0 -3
  206. package/dist/ui-kit/components/Avatar/Avatar.d.ts +0 -15
  207. package/dist/ui-kit/components/Avatar/index.d.ts +0 -1
  208. package/dist/ui-kit/components/Avatar/styles.d.ts +0 -3
  209. package/dist/ui-kit/components/Button/index.d.ts +0 -13
  210. package/dist/ui-kit/components/Button/styles.d.ts +0 -2
  211. package/dist/ui-kit/components/Checkbox/index.d.ts +0 -3
  212. package/dist/ui-kit/components/Checkbox/styles.d.ts +0 -2
  213. package/dist/ui-kit/components/DropMenu/DropMenu.d.ts +0 -8
  214. package/dist/ui-kit/components/DropMenu/DropMenuItem.d.ts +0 -10
  215. package/dist/ui-kit/components/DropMenu/index.d.ts +0 -2
  216. package/dist/ui-kit/components/DropMenu/styles.d.ts +0 -2
  217. package/dist/ui-kit/components/FormErrorMessage/index.d.ts +0 -6
  218. package/dist/ui-kit/components/FormErrorMessage/styles.d.ts +0 -2
  219. package/dist/ui-kit/components/Image/index.d.ts +0 -7
  220. package/dist/ui-kit/components/Input/Input.d.ts +0 -19
  221. package/dist/ui-kit/components/Input/StyledInput.d.ts +0 -11
  222. package/dist/ui-kit/components/Input/index.d.ts +0 -1
  223. package/dist/ui-kit/components/Input/styles.d.ts +0 -2
  224. package/dist/ui-kit/components/Loaders/WineLoader/index.d.ts +0 -3
  225. package/dist/ui-kit/components/Loaders/WineLoader/styles.d.ts +0 -2
  226. package/dist/ui-kit/components/Loaders/index.d.ts +0 -1
  227. package/dist/ui-kit/icons/CheckDoubleIcon.d.ts +0 -10
  228. package/dist/ui-kit/icons/CheckIcon.d.ts +0 -10
  229. package/dist/ui-kit/icons/ChevronLeftIcon.d.ts +0 -10
  230. package/dist/ui-kit/icons/CloseCircleIcon.d.ts +0 -10
  231. package/dist/ui-kit/icons/CloseClean.d.ts +0 -10
  232. package/dist/ui-kit/icons/CloseIcon.d.ts +0 -10
  233. package/dist/ui-kit/icons/EmptyPollIcon.d.ts +0 -10
  234. package/dist/ui-kit/icons/MoreHoriz.d.ts +0 -10
  235. package/dist/ui-kit/icons/PinnedIcon.d.ts +0 -10
  236. package/dist/ui-kit/icons/PollMessageIcon.d.ts +0 -10
  237. package/dist/ui-kit/icons/PollOption1.d.ts +0 -10
  238. package/dist/ui-kit/icons/PollOption2.d.ts +0 -10
  239. package/dist/ui-kit/icons/PollOption3.d.ts +0 -10
  240. package/dist/ui-kit/icons/SearchIcon.d.ts +0 -10
  241. package/dist/ui-kit/icons/SendMessageIcon.d.ts +0 -10
  242. package/dist/ui-kit/icons/SubmitMessageIcon.d.ts +0 -10
  243. package/dist/ui-kit/icons/TalkIcon.d.ts +0 -10
  244. package/dist/ui-kit/index.d.ts +0 -7
  245. package/dist/utils/auth.d.ts +0 -4
  246. package/dist/utils/common.d.ts +0 -8
  247. package/dist/utils/consts.d.ts +0 -2
  248. package/dist/utils/date.d.ts +0 -4
  249. package/dist/utils/errors.d.ts +0 -3
  250. package/dist/utils/eventBus/eventBus.d.ts +0 -4
  251. package/dist/utils/eventBus/index.d.ts +0 -1
  252. package/dist/utils/eventBus/types.d.ts +0 -12
  253. package/dist/utils/helper.d.ts +0 -4
  254. package/dist/utils/users.d.ts +0 -3
@@ -1,27 +0,0 @@
1
- import { IRUser } from '../types/serverResponses';
2
- import User from './chat/user';
3
- declare const Auth_base: import("mobx-keystone")._Model<unknown, {
4
- me: import("mobx-keystone").OptionalModelProp<User>;
5
- accessToken: import("mobx-keystone").OptionalModelProp<string>;
6
- appId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
7
- isAuthorized: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
8
- isAnonymousAllowed: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
9
- }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
10
- me: import("mobx-keystone").OptionalModelProp<User>;
11
- accessToken: import("mobx-keystone").OptionalModelProp<string>;
12
- appId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
13
- isAuthorized: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
14
- isAnonymousAllowed: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
15
- }>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
16
- me: import("mobx-keystone").OptionalModelProp<User>;
17
- accessToken: import("mobx-keystone").OptionalModelProp<string>;
18
- appId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
19
- isAuthorized: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
20
- isAnonymousAllowed: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
21
- }>>>;
22
- export default class Auth extends Auth_base {
23
- setAccessToken(token: string): void;
24
- get isModerator(): boolean;
25
- setMe(user: IRUser): void;
26
- }
27
- export {};
@@ -1,69 +0,0 @@
1
- import { Ref } from 'mobx-keystone';
2
- import { IServerPoll, IServerPollOption } from '../../containers/CreatePollPage/types';
3
- import { ChannelTypeEnum } from '../../types/enums';
4
- import { IRChannelMessage, IRPinnedMessage } from '../../types/serverResponses';
5
- import Message from './message';
6
- import PinnedMessage from './pinnedMessage';
7
- import Poll from './poll';
8
- import User from './user';
9
- declare const Channel_base: import("mobx-keystone")._Model<unknown, {
10
- name: import("mobx-keystone").OptionalModelProp<string>;
11
- id: import("mobx-keystone").MaybeOptionalModelProp<string>;
12
- externalId: import("mobx-keystone").OptionalModelProp<string>;
13
- type: import("mobx-keystone").OptionalModelProp<ChannelTypeEnum>;
14
- messages: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Message>>;
15
- directUsersOnly: import("mobx-keystone").OptionalModelProp<User[]>;
16
- polls: import("mobx-keystone").OptionalModelProp<Poll[]>;
17
- activePoll: import("mobx-keystone").ModelProp<Ref<Poll> | undefined, Ref<Poll> | null | undefined, Ref<Poll> | undefined, Ref<Poll> | null | undefined, string, false, string>;
18
- pinnedMessages: import("mobx-keystone").OptionalModelProp<PinnedMessage[]>;
19
- }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
20
- name: import("mobx-keystone").OptionalModelProp<string>;
21
- id: import("mobx-keystone").MaybeOptionalModelProp<string>;
22
- externalId: import("mobx-keystone").OptionalModelProp<string>;
23
- type: import("mobx-keystone").OptionalModelProp<ChannelTypeEnum>;
24
- messages: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Message>>;
25
- directUsersOnly: import("mobx-keystone").OptionalModelProp<User[]>;
26
- polls: import("mobx-keystone").OptionalModelProp<Poll[]>;
27
- activePoll: import("mobx-keystone").ModelProp<Ref<Poll> | undefined, Ref<Poll> | null | undefined, Ref<Poll> | undefined, Ref<Poll> | null | undefined, string, false, string>;
28
- pinnedMessages: import("mobx-keystone").OptionalModelProp<PinnedMessage[]>;
29
- }>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
30
- name: import("mobx-keystone").OptionalModelProp<string>;
31
- id: import("mobx-keystone").MaybeOptionalModelProp<string>;
32
- externalId: import("mobx-keystone").OptionalModelProp<string>;
33
- type: import("mobx-keystone").OptionalModelProp<ChannelTypeEnum>;
34
- messages: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Message>>;
35
- directUsersOnly: import("mobx-keystone").OptionalModelProp<User[]>;
36
- polls: import("mobx-keystone").OptionalModelProp<Poll[]>;
37
- activePoll: import("mobx-keystone").ModelProp<Ref<Poll> | undefined, Ref<Poll> | null | undefined, Ref<Poll> | undefined, Ref<Poll> | null | undefined, string, false, string>;
38
- pinnedMessages: import("mobx-keystone").OptionalModelProp<PinnedMessage[]>;
39
- }>>>;
40
- export default class Channel extends Channel_base {
41
- addMessages(messages: IRChannelMessage[]): number;
42
- setPollList(items: IServerPoll[]): void;
43
- addPoll(poll: IServerPoll): Poll;
44
- deletePoll(poll: Poll): void;
45
- startPoll(poll?: Poll): void;
46
- setPollVoted(payload: string[], options: IServerPollOption[]): void;
47
- updateVotesCounter(ids: number[]): void;
48
- stopPoll(poll?: Poll): void;
49
- closePollPortal(): void;
50
- pollResult(poll: Poll): void;
51
- setPinnedMessages(items: IRPinnedMessage[]): void;
52
- cleanAllMessages(): void;
53
- deleteMessages(ids: number[]): void;
54
- getLastPollByTemplateId(templateId?: string): Poll | undefined;
55
- findPollById(pollId?: string): Poll | undefined;
56
- getPollListByTemplateId(templatePoll?: Poll): Poll[] | undefined;
57
- get sortedMessages(): Message[];
58
- findLastMessageForUser(msgIdx: number): Message | undefined;
59
- get lastMessage(): Message | undefined;
60
- get messagesCount(): number;
61
- get getActivePoll(): Poll | undefined;
62
- get isPollsInProgress(): boolean;
63
- get getPinnedMessages(): PinnedMessage[];
64
- get lastPinnedMessage(): PinnedMessage;
65
- get getPollTemplates(): Poll[];
66
- get getPollList(): Poll[];
67
- findMessageIdx(messageId: number): number;
68
- }
69
- export {};
@@ -1,38 +0,0 @@
1
- import { Ref } from 'mobx-keystone';
2
- import { IRChannel, IRPub, IRUser } from '../../types/serverResponses';
3
- import Channel from './channel';
4
- import Pub from './pub';
5
- import User from './user';
6
- declare const Chat_base: import("mobx-keystone")._Model<unknown, {
7
- channels: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Channel>>;
8
- pubs: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Pub>>;
9
- users: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<User>>;
10
- }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
11
- channels: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Channel>>;
12
- pubs: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Pub>>;
13
- users: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<User>>;
14
- }>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
15
- channels: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Channel>>;
16
- pubs: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<Pub>>;
17
- users: import("mobx-keystone").OptionalModelProp<import("mobx-keystone").ObjectMap<User>>;
18
- }>>>;
19
- export default class Chat extends Chat_base {
20
- fetchingQueueUser: string[];
21
- private startFetching;
22
- onAttachedToRootStore(): () => void;
23
- get userList(): User[];
24
- get channelsList(): Channel[];
25
- get publicChannelsList(): Channel[];
26
- get directChannelsList(): Channel[];
27
- get pubsList(): Pub[];
28
- createUserRef(id: string): Ref<User>;
29
- updateUser(payload: {
30
- userId: number;
31
- displayName?: string;
32
- avatarUrl?: string;
33
- }): void;
34
- addUsers(users?: IRUser[]): void;
35
- addChannels(channels: IRChannel[]): void;
36
- addPubs(pubs: IRPub[]): void;
37
- }
38
- export {};
@@ -1,62 +0,0 @@
1
- import { Ref } from 'mobx-keystone';
2
- import { MessageTypeEnum } from '../../types/enums';
3
- import User from './user';
4
- import { Root } from '../index';
5
- export declare enum SystemMessageEnum {
6
- UserJoinedEvent = "user-joined",
7
- UserChangedEvent = "user-changed",
8
- UserChangedChannelEvent = "user-changed-channel",
9
- ChangedChannelEvent = "changed-channel"
10
- }
11
- export interface SystemData {
12
- event: SystemMessageEnum;
13
- whoJoined?: Ref<User>;
14
- whoRenamedChannel?: Ref<User>;
15
- oldDisplayName?: string;
16
- newDisplayName?: string;
17
- newName?: string;
18
- }
19
- export interface UserJoinedPayload {
20
- userId: string;
21
- }
22
- export interface UserChangedPayload {
23
- oldDisplayName: string;
24
- newDisplayName: string;
25
- }
26
- export interface UserChangedChannelPayload {
27
- userId: string;
28
- newName: string;
29
- }
30
- export interface ChangedChannelEventPayload {
31
- newName: string;
32
- }
33
- declare const Message_base: import("mobx-keystone")._Model<unknown, {
34
- id: import("mobx-keystone").MaybeOptionalModelProp<string>;
35
- text: import("mobx-keystone").MaybeOptionalModelProp<string>;
36
- type: import("mobx-keystone").MaybeOptionalModelProp<MessageTypeEnum>;
37
- user: import("mobx-keystone").MaybeOptionalModelProp<Ref<User> | null>;
38
- createdAt: import("mobx-keystone").MaybeOptionalModelProp<string>;
39
- meta: import("mobx-keystone").MaybeOptionalModelProp<Record<string, unknown>>;
40
- systemData: import("mobx-keystone").MaybeOptionalModelProp<SystemData | null>;
41
- }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
42
- id: import("mobx-keystone").MaybeOptionalModelProp<string>;
43
- text: import("mobx-keystone").MaybeOptionalModelProp<string>;
44
- type: import("mobx-keystone").MaybeOptionalModelProp<MessageTypeEnum>;
45
- user: import("mobx-keystone").MaybeOptionalModelProp<Ref<User> | null>;
46
- createdAt: import("mobx-keystone").MaybeOptionalModelProp<string>;
47
- meta: import("mobx-keystone").MaybeOptionalModelProp<Record<string, unknown>>;
48
- systemData: import("mobx-keystone").MaybeOptionalModelProp<SystemData | null>;
49
- }>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
50
- id: import("mobx-keystone").MaybeOptionalModelProp<string>;
51
- text: import("mobx-keystone").MaybeOptionalModelProp<string>;
52
- type: import("mobx-keystone").MaybeOptionalModelProp<MessageTypeEnum>;
53
- user: import("mobx-keystone").MaybeOptionalModelProp<Ref<User> | null>;
54
- createdAt: import("mobx-keystone").MaybeOptionalModelProp<string>;
55
- meta: import("mobx-keystone").MaybeOptionalModelProp<Record<string, unknown>>;
56
- systemData: import("mobx-keystone").MaybeOptionalModelProp<SystemData | null>;
57
- }>>>;
58
- export default class Message extends Message_base {
59
- get getUser(): User | undefined;
60
- loadSystemData(root: Root, event: SystemMessageEnum, data: unknown): void;
61
- }
62
- export {};
@@ -1,26 +0,0 @@
1
- import { Ref } from 'mobx-keystone';
2
- import { IRChannelMessage } from 'types/serverResponses';
3
- import User from './user';
4
- declare const PinnedMessage_base: import("mobx-keystone")._Model<unknown, {
5
- id: import("mobx-keystone").MaybeOptionalModelProp<string>;
6
- channelId: import("mobx-keystone").MaybeOptionalModelProp<number>;
7
- messageId: import("mobx-keystone").MaybeOptionalModelProp<number>;
8
- message: import("mobx-keystone").MaybeOptionalModelProp<IRChannelMessage>;
9
- user: import("mobx-keystone").MaybeOptionalModelProp<Ref<User>>;
10
- }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
11
- id: import("mobx-keystone").MaybeOptionalModelProp<string>;
12
- channelId: import("mobx-keystone").MaybeOptionalModelProp<number>;
13
- messageId: import("mobx-keystone").MaybeOptionalModelProp<number>;
14
- message: import("mobx-keystone").MaybeOptionalModelProp<IRChannelMessage>;
15
- user: import("mobx-keystone").MaybeOptionalModelProp<Ref<User>>;
16
- }>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
17
- id: import("mobx-keystone").MaybeOptionalModelProp<string>;
18
- channelId: import("mobx-keystone").MaybeOptionalModelProp<number>;
19
- messageId: import("mobx-keystone").MaybeOptionalModelProp<number>;
20
- message: import("mobx-keystone").MaybeOptionalModelProp<IRChannelMessage>;
21
- user: import("mobx-keystone").MaybeOptionalModelProp<Ref<User>>;
22
- }>>>;
23
- export default class PinnedMessage extends PinnedMessage_base {
24
- }
25
- export declare const pinnedMessageRef: import("mobx-keystone").RefConstructor<PinnedMessage>;
26
- export {};
@@ -1,48 +0,0 @@
1
- import { IServerPollOption, IServerPollVote } from '../../containers/CreatePollPage/types';
2
- import { IPollStatus } from '../../types/types';
3
- declare const Poll_base: import("mobx-keystone")._Model<unknown, {
4
- id: import("mobx-keystone").MaybeOptionalModelProp<string>;
5
- question: import("mobx-keystone").OptionalModelProp<string>;
6
- isOpenEnded: import("mobx-keystone").OptionalModelProp<boolean>;
7
- withAnswer: import("mobx-keystone").OptionalModelProp<boolean>;
8
- isVoted: import("mobx-keystone").OptionalModelProp<boolean>;
9
- options: import("mobx-keystone").OptionalModelProp<IServerPollOption[]>;
10
- validOptions: import("mobx-keystone").OptionalModelProp<string[]>;
11
- templateId: import("mobx-keystone").MaybeOptionalModelProp<number | null | undefined>;
12
- createdAt: import("mobx-keystone").MaybeOptionalModelProp<string>;
13
- stoppedAt: import("mobx-keystone").MaybeOptionalModelProp<string>;
14
- status: import("mobx-keystone").ModelProp<IPollStatus, IPollStatus | null | undefined, IPollStatus, IPollStatus | null | undefined, string, false, string>;
15
- votes: import("mobx-keystone").OptionalModelProp<IServerPollVote[]>;
16
- }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
17
- id: import("mobx-keystone").MaybeOptionalModelProp<string>;
18
- question: import("mobx-keystone").OptionalModelProp<string>;
19
- isOpenEnded: import("mobx-keystone").OptionalModelProp<boolean>;
20
- withAnswer: import("mobx-keystone").OptionalModelProp<boolean>;
21
- isVoted: import("mobx-keystone").OptionalModelProp<boolean>;
22
- options: import("mobx-keystone").OptionalModelProp<IServerPollOption[]>;
23
- validOptions: import("mobx-keystone").OptionalModelProp<string[]>;
24
- templateId: import("mobx-keystone").MaybeOptionalModelProp<number | null | undefined>;
25
- createdAt: import("mobx-keystone").MaybeOptionalModelProp<string>;
26
- stoppedAt: import("mobx-keystone").MaybeOptionalModelProp<string>;
27
- status: import("mobx-keystone").ModelProp<IPollStatus, IPollStatus | null | undefined, IPollStatus, IPollStatus | null | undefined, string, false, string>;
28
- votes: import("mobx-keystone").OptionalModelProp<IServerPollVote[]>;
29
- }>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
30
- id: import("mobx-keystone").MaybeOptionalModelProp<string>;
31
- question: import("mobx-keystone").OptionalModelProp<string>;
32
- isOpenEnded: import("mobx-keystone").OptionalModelProp<boolean>;
33
- withAnswer: import("mobx-keystone").OptionalModelProp<boolean>;
34
- isVoted: import("mobx-keystone").OptionalModelProp<boolean>;
35
- options: import("mobx-keystone").OptionalModelProp<IServerPollOption[]>;
36
- validOptions: import("mobx-keystone").OptionalModelProp<string[]>;
37
- templateId: import("mobx-keystone").MaybeOptionalModelProp<number | null | undefined>;
38
- createdAt: import("mobx-keystone").MaybeOptionalModelProp<string>;
39
- stoppedAt: import("mobx-keystone").MaybeOptionalModelProp<string>;
40
- status: import("mobx-keystone").ModelProp<IPollStatus, IPollStatus | null | undefined, IPollStatus, IPollStatus | null | undefined, string, false, string>;
41
- votes: import("mobx-keystone").OptionalModelProp<IServerPollVote[]>;
42
- }>>>;
43
- export default class Poll extends Poll_base {
44
- changeStatus(status: IPollStatus): void;
45
- addVote(vote: IServerPollVote): void;
46
- }
47
- export declare const pollRef: import("mobx-keystone").RefConstructor<Poll>;
48
- export {};
@@ -1,13 +0,0 @@
1
- declare const Pub_base: import("mobx-keystone")._Model<unknown, {
2
- id: import("mobx-keystone").OptionalModelProp<string>;
3
- name: import("mobx-keystone").OptionalModelProp<string>;
4
- }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
5
- id: import("mobx-keystone").OptionalModelProp<string>;
6
- name: import("mobx-keystone").OptionalModelProp<string>;
7
- }>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
8
- id: import("mobx-keystone").OptionalModelProp<string>;
9
- name: import("mobx-keystone").OptionalModelProp<string>;
10
- }>>>;
11
- export default class Pub extends Pub_base {
12
- }
13
- export {};
@@ -1,27 +0,0 @@
1
- import { AvatarColorEnum } from 'theme/consts';
2
- import { UserRoleEnum } from '../../types/enums';
3
- export declare const getColorFromString: (colors: string[], str?: string | null | undefined) => keyof typeof AvatarColorEnum;
4
- declare const User_base: import("mobx-keystone")._Model<unknown, {
5
- id: import("mobx-keystone").OptionalModelProp<string>;
6
- username: import("mobx-keystone").OptionalModelProp<string>;
7
- displayName: import("mobx-keystone").OptionalModelProp<string>;
8
- avatarUrl: import("mobx-keystone").OptionalModelProp<string>;
9
- role: import("mobx-keystone").OptionalModelProp<UserRoleEnum>;
10
- }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
11
- id: import("mobx-keystone").OptionalModelProp<string>;
12
- username: import("mobx-keystone").OptionalModelProp<string>;
13
- displayName: import("mobx-keystone").OptionalModelProp<string>;
14
- avatarUrl: import("mobx-keystone").OptionalModelProp<string>;
15
- role: import("mobx-keystone").OptionalModelProp<UserRoleEnum>;
16
- }>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
17
- id: import("mobx-keystone").OptionalModelProp<string>;
18
- username: import("mobx-keystone").OptionalModelProp<string>;
19
- displayName: import("mobx-keystone").OptionalModelProp<string>;
20
- avatarUrl: import("mobx-keystone").OptionalModelProp<string>;
21
- role: import("mobx-keystone").OptionalModelProp<UserRoleEnum>;
22
- }>>>;
23
- export default class User extends User_base {
24
- get getAvatarColor(): AvatarColorEnum;
25
- }
26
- export declare const userRef: import("mobx-keystone").RefConstructor<User>;
27
- export {};
@@ -1,3 +0,0 @@
1
- import { IRUser } from 'types/serverResponses';
2
- import User from './chat/user';
3
- export declare const createUserFactory: (user: IRUser) => User;
@@ -1,30 +0,0 @@
1
- import Auth from './auth';
2
- import Chat from './chat';
3
- import Settings from './settings';
4
- import SocketStore from './socket';
5
- import UI from './ui';
6
- declare const Root_base: import("mobx-keystone")._Model<unknown, {
7
- chat: import("mobx-keystone").OptionalModelProp<Chat>;
8
- auth: import("mobx-keystone").OptionalModelProp<Auth>;
9
- socket: import("mobx-keystone").OptionalModelProp<SocketStore>;
10
- ui: import("mobx-keystone").OptionalModelProp<UI>;
11
- settings: import("mobx-keystone").OptionalModelProp<Settings>;
12
- }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
13
- chat: import("mobx-keystone").OptionalModelProp<Chat>;
14
- auth: import("mobx-keystone").OptionalModelProp<Auth>;
15
- socket: import("mobx-keystone").OptionalModelProp<SocketStore>;
16
- ui: import("mobx-keystone").OptionalModelProp<UI>;
17
- settings: import("mobx-keystone").OptionalModelProp<Settings>;
18
- }>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
19
- chat: import("mobx-keystone").OptionalModelProp<Chat>;
20
- auth: import("mobx-keystone").OptionalModelProp<Auth>;
21
- socket: import("mobx-keystone").OptionalModelProp<SocketStore>;
22
- ui: import("mobx-keystone").OptionalModelProp<UI>;
23
- settings: import("mobx-keystone").OptionalModelProp<Settings>;
24
- }>>>;
25
- export declare class Root extends Root_base {
26
- get currentChannel(): import("./chat/channel").default | undefined;
27
- init(): void;
28
- }
29
- declare const useKeystone: () => Root;
30
- export default useKeystone;
@@ -1,16 +0,0 @@
1
- import { Root } from './index';
2
- export declare const getInitialData: (root: Root) => Promise<void>;
3
- export declare const login: (root: Root, username: string, password?: string | undefined) => Promise<void>;
4
- export declare const signup: (root: Root, username: string, password?: string | undefined) => Promise<void>;
5
- export declare const saveProfile: (root: Root, displayName: string, avatar?: string | undefined) => Promise<void>;
6
- export declare const joinChannel: (root: Root, id: string) => Promise<void>;
7
- export declare const joinChannelByExternalId: (root: Root, externalId: string) => Promise<void>;
8
- export declare const fetchMessagesBefore: (root: Root, channelId: number, messageId: number, options?: {
9
- limit?: number | undefined;
10
- until?: number | undefined;
11
- } | undefined) => Promise<number>;
12
- export declare const redirectToInitial: (root: Root) => Promise<void> | void;
13
- export declare const sendMessage: (root: Root, channelId: string, text: string) => Promise<void>;
14
- export declare const getSettings: (root: Root, appId: string) => Promise<void>;
15
- declare const _default: {};
16
- export default _default;
@@ -1,42 +0,0 @@
1
- declare const Settings_base: import("mobx-keystone")._Model<unknown, {
2
- createChannelAllowed: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
3
- accessUnregisteredUsers: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
4
- accessChatGuest: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
5
- accessRegister: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
6
- displayDirect: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
7
- displayUserList: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
8
- displayChannelList: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
9
- displaySystemMessages: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
10
- displayHeader: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
11
- displayFooter: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
12
- socketUrl: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
13
- }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
14
- createChannelAllowed: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
15
- accessUnregisteredUsers: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
16
- accessChatGuest: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
17
- accessRegister: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
18
- displayDirect: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
19
- displayUserList: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
20
- displayChannelList: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
21
- displaySystemMessages: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
22
- displayHeader: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
23
- displayFooter: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
24
- socketUrl: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
25
- }>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
26
- createChannelAllowed: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
27
- accessUnregisteredUsers: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
28
- accessChatGuest: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
29
- accessRegister: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
30
- displayDirect: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
31
- displayUserList: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
32
- displayChannelList: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
33
- displaySystemMessages: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
34
- displayHeader: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
35
- displayFooter: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
36
- socketUrl: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
37
- }>>>;
38
- export default class Settings extends Settings_base {
39
- setAll({ createChannelAllowed, accessUnregisteredUsers, accessChatGuest, accessRegister, displayDirect, displayUserList, displayChannelList, displaySystemMessages, displayHeader, displayFooter, socketUrl, }: Record<string, any>): void;
40
- get authMode(): number;
41
- }
42
- export {};
@@ -1,19 +0,0 @@
1
- import { IRChannelMessage } from 'types/serverResponses';
2
- declare const SocketStore_base: import("mobx-keystone")._Model<unknown, {
3
- isSocketConnected: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
4
- }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
5
- isSocketConnected: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
6
- }>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
7
- isSocketConnected: import("mobx-keystone").ModelProp<boolean, boolean | null | undefined, boolean, boolean | null | undefined, string, false, string>;
8
- }>>>;
9
- export default class SocketStore extends SocketStore_base {
10
- messageChunk: {
11
- channelId: string;
12
- message: IRChannelMessage;
13
- }[];
14
- messageRate: number;
15
- private startMessageProcessing;
16
- onAttachedToRootStore(): () => void;
17
- connect(socketUrl: string, accessToken: string): void;
18
- }
19
- export {};
@@ -1,29 +0,0 @@
1
- interface IParams {
2
- id?: string;
3
- pollId?: string;
4
- [key: string]: unknown;
5
- }
6
- declare const UI_base: import("mobx-keystone")._Model<unknown, {
7
- route: import("mobx-keystone").OptionalModelProp<string>;
8
- channelId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
9
- lang: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
10
- params: import("mobx-keystone").ModelProp<IParams, IParams | null | undefined, IParams, IParams | null | undefined, string, false, string>;
11
- }, import("mobx-keystone").SnapshotInOfObject<import("mobx-keystone").ModelPropsToCreationData<{
12
- route: import("mobx-keystone").OptionalModelProp<string>;
13
- channelId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
14
- lang: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
15
- params: import("mobx-keystone").ModelProp<IParams, IParams | null | undefined, IParams, IParams | null | undefined, string, false, string>;
16
- }>>, import("mobx-keystone").SnapshotOutOfObject<import("mobx-keystone").ModelPropsToData<{
17
- route: import("mobx-keystone").OptionalModelProp<string>;
18
- channelId: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
19
- lang: import("mobx-keystone").ModelProp<string, string | null | undefined, string, string | null | undefined, string, false, string>;
20
- params: import("mobx-keystone").ModelProp<IParams, IParams | null | undefined, IParams, IParams | null | undefined, string, false, string>;
21
- }>>>;
22
- export default class UI extends UI_base {
23
- jumpToMessage: (index: number) => void;
24
- setJumpToMessage(handler: (index: number) => void): void;
25
- routeHistory: string[];
26
- setRoute(route: string): void;
27
- back(): void;
28
- }
29
- export {};
@@ -1,2 +0,0 @@
1
- import { Chat } from '../Chat';
2
- export default Chat;