@vlprojects-chat/chat 0.0.57 → 0.5.13
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.
- package/README.md +1 -0
- package/dist/index.html +1 -0
- package/dist/index.js +57 -277
- package/dist/index.js.LICENSE.txt +102 -0
- package/package.json +85 -84
- package/dist/App.d.ts +0 -3
- package/dist/Chat.d.ts +0 -10
- package/dist/api/Api.d.ts +0 -10
- package/dist/api/index.d.ts +0 -1
- package/dist/components/ChannelList/ChannelList.d.ts +0 -3
- package/dist/components/ChannelList/components/LastMessage/LastMessage.d.ts +0 -7
- package/dist/components/ChannelList/components/LastMessage/index.d.ts +0 -1
- package/dist/components/ChannelList/index.d.ts +0 -1
- package/dist/components/ChannelList/styles.d.ts +0 -2
- package/dist/components/CreateChannelForm/index.d.ts +0 -6
- package/dist/components/CreateChannelForm/styles.d.ts +0 -2
- package/dist/components/DirectList/DirectList.d.ts +0 -3
- package/dist/components/DirectList/components/DirectListRow/DirectListRow.d.ts +0 -11
- package/dist/components/DirectList/components/DirectListRow/index.d.ts +0 -1
- package/dist/components/DirectList/components/DirectListRow/styles.d.ts +0 -2
- package/dist/components/DirectList/index.d.ts +0 -1
- package/dist/components/DirectList/service.d.ts +0 -6
- package/dist/components/Drawer/index.d.ts +0 -8
- package/dist/components/Drawer/styles.d.ts +0 -2
- package/dist/components/LoadingStatus/LoadingStatus.d.ts +0 -6
- package/dist/components/LoadingStatus/index.d.ts +0 -1
- package/dist/components/LoadingStatus/styles.d.ts +0 -2
- package/dist/components/MessageInput/MessageInput.d.ts +0 -8
- package/dist/components/MessageInput/components/MessageInputActions/MessageInputActions.d.ts +0 -5
- package/dist/components/MessageInput/components/MessageInputActions/index.d.ts +0 -1
- package/dist/components/MessageInput/index.d.ts +0 -1
- package/dist/components/MessageInput/styles.d.ts +0 -2
- package/dist/components/MessageList/MessageList.d.ts +0 -6
- package/dist/components/MessageList/components/MessageActions/MessageActions.d.ts +0 -9
- package/dist/components/MessageList/components/MessageActions/index.d.ts +0 -1
- package/dist/components/MessageList/components/MessageRow/MessageRow.d.ts +0 -11
- package/dist/components/MessageList/components/MessageRow/index.d.ts +0 -1
- package/dist/components/MessageList/components/SystemMessage/SystemMessage.d.ts +0 -7
- package/dist/components/MessageList/components/SystemMessage/components/ChangedChannel/ChangedChannel.d.ts +0 -7
- package/dist/components/MessageList/components/SystemMessage/components/ChangedChannel/index.d.ts +0 -1
- package/dist/components/MessageList/components/SystemMessage/components/UserChanged/UserChanged.d.ts +0 -7
- package/dist/components/MessageList/components/SystemMessage/components/UserChanged/index.d.ts +0 -1
- package/dist/components/MessageList/components/SystemMessage/components/UserChangedChannel/UserChangedChannel.d.ts +0 -7
- package/dist/components/MessageList/components/SystemMessage/components/UserChangedChannel/index.d.ts +0 -1
- package/dist/components/MessageList/components/SystemMessage/components/UserJoined/UserJoined.d.ts +0 -7
- package/dist/components/MessageList/components/SystemMessage/components/UserJoined/index.d.ts +0 -1
- package/dist/components/MessageList/components/SystemMessage/index.d.ts +0 -1
- package/dist/components/MessageList/components/SystemMessage/styles.d.ts +0 -2
- package/dist/components/MessageList/components/UserMessage/UserMessage.d.ts +0 -12
- package/dist/components/MessageList/components/UserMessage/components/UserMessageAvatar/UserMessageAvatar.d.ts +0 -7
- package/dist/components/MessageList/components/UserMessage/components/UserMessageAvatar/index.d.ts +0 -1
- package/dist/components/MessageList/components/UserMessage/components/UserMessageDisplayName/UserMessageDisplayName.d.ts +0 -8
- package/dist/components/MessageList/components/UserMessage/components/UserMessageDisplayName/index.d.ts +0 -1
- package/dist/components/MessageList/components/UserMessage/components/UserMessageDisplayName/styles.d.ts +0 -2
- package/dist/components/MessageList/components/UserMessage/index.d.ts +0 -1
- package/dist/components/MessageList/components/UserMessage/styles.d.ts +0 -5
- package/dist/components/MessageList/index.d.ts +0 -1
- package/dist/components/MessageList/styles.d.ts +0 -2
- package/dist/components/NameInput/index.d.ts +0 -6
- package/dist/components/NameInput/styles.d.ts +0 -2
- package/dist/components/PinnedMessageList/PinnedMessageList.d.ts +0 -3
- package/dist/components/PinnedMessageList/index.d.ts +0 -1
- package/dist/components/PinnedMessageList/styles.d.ts +0 -2
- package/dist/components/PollStatusBadge/PollStatusBadge.d.ts +0 -8
- package/dist/components/PollStatusBadge/index.d.ts +0 -1
- package/dist/components/Router/index.d.ts +0 -6
- package/dist/components/SubHeader/SubHeader.d.ts +0 -6
- package/dist/components/SubHeader/index.d.ts +0 -1
- package/dist/components/SubHeader/styles.d.ts +0 -2
- package/dist/containers/Auth/Auth.d.ts +0 -4
- package/dist/containers/Auth/components/ActionBlock/ActionBlock.d.ts +0 -12
- package/dist/containers/Auth/components/ActionBlock/index.d.ts +0 -1
- package/dist/containers/Auth/components/ActionBlock/styles.d.ts +0 -2
- package/dist/containers/Auth/components/Guest/Guest.d.ts +0 -3
- package/dist/containers/Auth/components/Guest/index.d.ts +0 -1
- package/dist/containers/Auth/components/Guest/styles.d.ts +0 -2
- package/dist/containers/Auth/components/Signin/Signin.d.ts +0 -6
- package/dist/containers/Auth/components/Signin/index.d.ts +0 -1
- package/dist/containers/Auth/components/Signin/styles.d.ts +0 -2
- package/dist/containers/Auth/components/Signup/Signup.d.ts +0 -6
- package/dist/containers/Auth/components/Signup/index.d.ts +0 -1
- package/dist/containers/Auth/components/Signup/styles.d.ts +0 -2
- package/dist/containers/Auth/const.d.ts +0 -2
- package/dist/containers/Auth/index.d.ts +0 -1
- package/dist/containers/Auth/styles.d.ts +0 -2
- package/dist/containers/AuthLayout/index.d.ts +0 -7
- package/dist/containers/ChannelPage/ChannelPage.d.ts +0 -3
- package/dist/containers/ChannelPage/components/ChannelPageHeader/ChannelPageHeader.d.ts +0 -8
- package/dist/containers/ChannelPage/components/ChannelPageHeader/index.d.ts +0 -1
- package/dist/containers/ChannelPage/index.d.ts +0 -1
- package/dist/containers/ChannelPage/service.d.ts +0 -8
- package/dist/containers/ChannelPage/styles.d.ts +0 -2
- package/dist/containers/Channels/Channels.d.ts +0 -7
- package/dist/containers/Channels/components/ChannelsHeader/ChannelsHeader.d.ts +0 -6
- package/dist/containers/Channels/components/ChannelsHeader/index.d.ts +0 -1
- package/dist/containers/Channels/components/ChannelsHeader/styles.d.ts +0 -2
- package/dist/containers/Channels/components/Footer/Footer.d.ts +0 -3
- package/dist/containers/Channels/components/Footer/index.d.ts +0 -1
- package/dist/containers/Channels/components/Footer/styles.d.ts +0 -2
- package/dist/containers/Channels/index.d.ts +0 -1
- package/dist/containers/CreatePollPage/CreatePollPage.d.ts +0 -3
- package/dist/containers/CreatePollPage/components/CreatePollForm/CreatePollForm.d.ts +0 -7
- package/dist/containers/CreatePollPage/components/CreatePollForm/index.d.ts +0 -1
- package/dist/containers/CreatePollPage/components/CreatePollForm/styles.d.ts +0 -2
- package/dist/containers/CreatePollPage/components/CreatePollForm/validate.d.ts +0 -7
- package/dist/containers/CreatePollPage/components/SelectPollType/SelectPollType.d.ts +0 -9
- package/dist/containers/CreatePollPage/components/SelectPollType/index.d.ts +0 -1
- package/dist/containers/CreatePollPage/index.d.ts +0 -1
- package/dist/containers/CreatePollPage/services.d.ts +0 -2
- package/dist/containers/CreatePollPage/types.d.ts +0 -48
- package/dist/containers/PollListPage/PollListPage.d.ts +0 -3
- package/dist/containers/PollListPage/components/PollAction/PollAction.d.ts +0 -8
- package/dist/containers/PollListPage/components/PollAction/index.d.ts +0 -1
- package/dist/containers/PollListPage/components/PollAction/styles.d.ts +0 -2
- package/dist/containers/PollListPage/components/PollCard/PollCard.d.ts +0 -8
- package/dist/containers/PollListPage/components/PollCard/index.d.ts +0 -1
- package/dist/containers/PollListPage/components/PollCard/styles.d.ts +0 -2
- package/dist/containers/PollListPage/components/TemplateList/TemplateList.d.ts +0 -3
- package/dist/containers/PollListPage/components/TemplateList/index.d.ts +0 -1
- package/dist/containers/PollListPage/index.d.ts +0 -1
- package/dist/containers/PollListPage/services.d.ts +0 -20
- package/dist/containers/PollModeratorResultPage/PollModeratorResultPage.d.ts +0 -3
- package/dist/containers/PollModeratorResultPage/components/ActionButton/ActionButton.d.ts +0 -10
- package/dist/containers/PollModeratorResultPage/components/ActionButton/index.d.ts +0 -1
- package/dist/containers/PollModeratorResultPage/components/OptionRow/OptionRow.d.ts +0 -7
- package/dist/containers/PollModeratorResultPage/components/OptionRow/index.d.ts +0 -1
- package/dist/containers/PollModeratorResultPage/components/OptionRowOpenEnded/OptionRowOpenEnded.d.ts +0 -7
- package/dist/containers/PollModeratorResultPage/components/OptionRowOpenEnded/index.d.ts +0 -1
- package/dist/containers/PollModeratorResultPage/components/OptionRowWrapper/OptionRowWrapper.d.ts +0 -3
- package/dist/containers/PollModeratorResultPage/components/OptionRowWrapper/index.d.ts +0 -1
- package/dist/containers/PollModeratorResultPage/components/PollModeratorResultCard/PollModeratorResultCard.d.ts +0 -7
- package/dist/containers/PollModeratorResultPage/components/PollModeratorResultCard/index.d.ts +0 -1
- package/dist/containers/PollModeratorResultPage/index.d.ts +0 -1
- package/dist/containers/PollPortal/PollPortal.d.ts +0 -3
- package/dist/containers/PollPortal/components/CheckboxGroup/CheckboxGroup.d.ts +0 -8
- package/dist/containers/PollPortal/components/CheckboxGroup/index.d.ts +0 -1
- package/dist/containers/PollPortal/components/CloseButton/CloseButton.d.ts +0 -3
- package/dist/containers/PollPortal/components/CloseButton/index.d.ts +0 -1
- package/dist/containers/PollPortal/components/OpenEnded/OpenEnded.d.ts +0 -6
- package/dist/containers/PollPortal/components/OpenEnded/index.d.ts +0 -1
- package/dist/containers/PollPortal/components/OpenEnded/styles.d.ts +0 -2
- package/dist/containers/PollPortal/components/OptionBox/OptionBox.d.ts +0 -10
- package/dist/containers/PollPortal/components/OptionBox/index.d.ts +0 -1
- package/dist/containers/PollPortal/components/PollVariant/PollVariant.d.ts +0 -9
- package/dist/containers/PollPortal/components/PollVariant/index.d.ts +0 -1
- package/dist/containers/PollPortal/components/RadioGroup/RadioGroup.d.ts +0 -8
- package/dist/containers/PollPortal/components/RadioGroup/index.d.ts +0 -1
- package/dist/containers/PollPortal/components/ResultVariant/ResultVariant.d.ts +0 -7
- package/dist/containers/PollPortal/components/ResultVariant/index.d.ts +0 -1
- package/dist/containers/PollPortal/components/SubmitPollButton/SubmitPollButton.d.ts +0 -8
- package/dist/containers/PollPortal/components/SubmitPollButton/index.d.ts +0 -1
- package/dist/containers/PollPortal/index.d.ts +0 -1
- package/dist/containers/PollPortal/services.d.ts +0 -3
- package/dist/containers/PollPortal/styles.d.ts +0 -2
- package/dist/containers/PollResultOpenEndedDetailPage/PollResultOpenEndedDetailPage.d.ts +0 -3
- package/dist/containers/PollResultOpenEndedDetailPage/index.d.ts +0 -1
- package/dist/containers/PollResultOpenEndedDetailPage/styles.d.ts +0 -2
- package/dist/containers/Profile/Profile.d.ts +0 -4
- package/dist/containers/Profile/index.d.ts +0 -1
- package/dist/containers/Profile/styles.d.ts +0 -2
- package/dist/containers/SocketLayout/index.d.ts +0 -8
- package/dist/containers/UsersListPage/UsersListPage.d.ts +0 -4
- package/dist/containers/UsersListPage/components/UserList/UserList.d.ts +0 -7
- package/dist/containers/UsersListPage/components/UserList/index.d.ts +0 -1
- package/dist/containers/UsersListPage/components/UserRow/UserRow.d.ts +0 -9
- package/dist/containers/UsersListPage/components/UserRow/index.d.ts +0 -1
- package/dist/containers/UsersListPage/components/UserRow/styles.d.ts +0 -2
- package/dist/containers/UsersListPage/index.d.ts +0 -1
- package/dist/containers/UsersListPage/services.d.ts +0 -7
- package/dist/hoc/FieldHOC.d.ts +0 -8
- package/dist/hoc/MoreButtonHOC.d.ts +0 -9
- package/dist/hooks/useEventHook.d.ts +0 -4
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +0 -407
- package/dist/keystone/auth.d.ts +0 -27
- package/dist/keystone/chat/channel.d.ts +0 -69
- package/dist/keystone/chat/index.d.ts +0 -38
- package/dist/keystone/chat/message.d.ts +0 -62
- package/dist/keystone/chat/pinnedMessage.d.ts +0 -26
- package/dist/keystone/chat/poll.d.ts +0 -48
- package/dist/keystone/chat/pub.d.ts +0 -13
- package/dist/keystone/chat/user.d.ts +0 -27
- package/dist/keystone/factory.d.ts +0 -3
- package/dist/keystone/index.d.ts +0 -30
- package/dist/keystone/service.d.ts +0 -16
- package/dist/keystone/settings.d.ts +0 -42
- package/dist/keystone/socket.d.ts +0 -19
- package/dist/keystone/ui.d.ts +0 -29
- package/dist/lib/index.d.ts +0 -2
- package/dist/locales/index.d.ts +0 -196
- package/dist/routes.d.ts +0 -13
- package/dist/sentry/index.d.ts +0 -3
- package/dist/theme/consts.d.ts +0 -54
- package/dist/theme/muicssbaseline.d.ts +0 -4
- package/dist/theme/theme.d.ts +0 -2
- package/dist/types/centrifugeEvents.d.ts +0 -6
- package/dist/types/const.d.ts +0 -8
- package/dist/types/enums.d.ts +0 -24
- package/dist/types/serverResponses.d.ts +0 -54
- package/dist/types/socketEvents.d.ts +0 -16
- package/dist/types/types.d.ts +0 -5
- package/dist/ui-kit/HeaderTitle/HeaderTitile.d.ts +0 -8
- package/dist/ui-kit/HeaderTitle/index.d.ts +0 -1
- package/dist/ui-kit/HeaderTitle/styles.d.ts +0 -2
- package/dist/ui-kit/assets/icons/chat-minimize.svg +0 -3
- package/dist/ui-kit/assets/icons/icon-checkbox.svg +0 -3
- package/dist/ui-kit/components/Avatar/Avatar.d.ts +0 -15
- package/dist/ui-kit/components/Avatar/index.d.ts +0 -1
- package/dist/ui-kit/components/Avatar/styles.d.ts +0 -3
- package/dist/ui-kit/components/Button/index.d.ts +0 -13
- package/dist/ui-kit/components/Button/styles.d.ts +0 -2
- package/dist/ui-kit/components/Checkbox/index.d.ts +0 -3
- package/dist/ui-kit/components/Checkbox/styles.d.ts +0 -2
- package/dist/ui-kit/components/DropMenu/DropMenu.d.ts +0 -8
- package/dist/ui-kit/components/DropMenu/DropMenuItem.d.ts +0 -10
- package/dist/ui-kit/components/DropMenu/index.d.ts +0 -2
- package/dist/ui-kit/components/DropMenu/styles.d.ts +0 -2
- package/dist/ui-kit/components/FormErrorMessage/index.d.ts +0 -6
- package/dist/ui-kit/components/FormErrorMessage/styles.d.ts +0 -2
- package/dist/ui-kit/components/Image/index.d.ts +0 -7
- package/dist/ui-kit/components/Input/Input.d.ts +0 -19
- package/dist/ui-kit/components/Input/StyledInput.d.ts +0 -11
- package/dist/ui-kit/components/Input/index.d.ts +0 -1
- package/dist/ui-kit/components/Input/styles.d.ts +0 -2
- package/dist/ui-kit/components/Loaders/WineLoader/index.d.ts +0 -3
- package/dist/ui-kit/components/Loaders/WineLoader/styles.d.ts +0 -2
- package/dist/ui-kit/components/Loaders/index.d.ts +0 -1
- package/dist/ui-kit/icons/CheckDoubleIcon.d.ts +0 -10
- package/dist/ui-kit/icons/CheckIcon.d.ts +0 -10
- package/dist/ui-kit/icons/ChevronLeftIcon.d.ts +0 -10
- package/dist/ui-kit/icons/CloseCircleIcon.d.ts +0 -10
- package/dist/ui-kit/icons/CloseClean.d.ts +0 -10
- package/dist/ui-kit/icons/CloseIcon.d.ts +0 -10
- package/dist/ui-kit/icons/EmptyPollIcon.d.ts +0 -10
- package/dist/ui-kit/icons/MoreHoriz.d.ts +0 -10
- package/dist/ui-kit/icons/PinnedIcon.d.ts +0 -10
- package/dist/ui-kit/icons/PollMessageIcon.d.ts +0 -10
- package/dist/ui-kit/icons/PollOption1.d.ts +0 -10
- package/dist/ui-kit/icons/PollOption2.d.ts +0 -10
- package/dist/ui-kit/icons/PollOption3.d.ts +0 -10
- package/dist/ui-kit/icons/SearchIcon.d.ts +0 -10
- package/dist/ui-kit/icons/SendMessageIcon.d.ts +0 -10
- package/dist/ui-kit/icons/SubmitMessageIcon.d.ts +0 -10
- package/dist/ui-kit/icons/TalkIcon.d.ts +0 -10
- package/dist/ui-kit/index.d.ts +0 -7
- package/dist/utils/auth.d.ts +0 -4
- package/dist/utils/common.d.ts +0 -8
- package/dist/utils/consts.d.ts +0 -2
- package/dist/utils/date.d.ts +0 -4
- package/dist/utils/errors.d.ts +0 -3
- package/dist/utils/eventBus/eventBus.d.ts +0 -4
- package/dist/utils/eventBus/index.d.ts +0 -1
- package/dist/utils/eventBus/types.d.ts +0 -12
- package/dist/utils/helper.d.ts +0 -4
- package/dist/utils/users.d.ts +0 -3
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*!
|
|
8
|
+
Copyright (c) 2018 Jed Watson.
|
|
9
|
+
Licensed under the MIT License (MIT), see
|
|
10
|
+
http://jedwatson.github.io/classnames
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/*!
|
|
14
|
+
* JavaScript Cookie v2.2.1
|
|
15
|
+
* https://github.com/js-cookie/js-cookie
|
|
16
|
+
*
|
|
17
|
+
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
18
|
+
* Released under the MIT license
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/*! *****************************************************************************
|
|
22
|
+
Copyright (c) Microsoft Corporation.
|
|
23
|
+
|
|
24
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
25
|
+
purpose with or without fee is hereby granted.
|
|
26
|
+
|
|
27
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
28
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
29
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
30
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
31
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
32
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
33
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
34
|
+
***************************************************************************** */
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* A better abstraction over CSS.
|
|
38
|
+
*
|
|
39
|
+
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
40
|
+
* @website https://github.com/cssinjs/jss
|
|
41
|
+
* @license MIT
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/** @license MUI v5.3.0
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/** @license React v0.20.2
|
|
51
|
+
* scheduler.production.min.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
/** @license React v16.13.1
|
|
60
|
+
* react-is.production.min.js
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the MIT license found in the
|
|
65
|
+
* LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
/** @license React v17.0.2
|
|
69
|
+
* react-dom.production.min.js
|
|
70
|
+
*
|
|
71
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the MIT license found in the
|
|
74
|
+
* LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
/** @license React v17.0.2
|
|
78
|
+
* react-is.production.min.js
|
|
79
|
+
*
|
|
80
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the MIT license found in the
|
|
83
|
+
* LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
/** @license React v17.0.2
|
|
87
|
+
* react-jsx-runtime.production.min.js
|
|
88
|
+
*
|
|
89
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the MIT license found in the
|
|
92
|
+
* LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
/** @license React v17.0.2
|
|
96
|
+
* react.production.min.js
|
|
97
|
+
*
|
|
98
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the MIT license found in the
|
|
101
|
+
* LICENSE file in the root directory of this source tree.
|
|
102
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,122 +1,121 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vlprojects-chat/chat",
|
|
3
3
|
"author": "vlprojects",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"description": "chat",
|
|
4
|
+
"version": "0.5.13",
|
|
5
|
+
"description": "Private playground for development of public library @vlprojects-chat/chat",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
8
9
|
"module": "dist/index.es.js",
|
|
9
10
|
"files": ["dist"],
|
|
10
|
-
"types": "dist/lib/index.d.ts",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "git+ssh://git@github.com/VLprojects/chat.git"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"start": "
|
|
17
|
-
"build": "
|
|
18
|
-
"dist": "rm -rf dist && node --max-old-space-size=8192 node_modules/rollup/dist/bin/rollup -c rollup.config.js",
|
|
19
|
-
"test": "react-scripts test",
|
|
20
|
-
"eject": "react-scripts eject",
|
|
16
|
+
"start": "webpack serve --mode development --config webpack/webpack.config.ts",
|
|
17
|
+
"build": "rm -rf build && webpack --mode production --config webpack/webpack.config.ts",
|
|
21
18
|
"lint:js": "eslint ./src --ext .ts,.tsx",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
},
|
|
25
|
-
"eslintConfig": {
|
|
26
|
-
"extends": ["react-app", "react-app/jest"]
|
|
19
|
+
"client:build:prod:stats": "webpack --mode production --config webpack/webpack.config.ts --env test --profile --json > build/stats.json",
|
|
20
|
+
"webpack-bundle-analyzer": "webpack-bundle-analyzer build/stats.json"
|
|
27
21
|
},
|
|
28
22
|
"browserslist": {
|
|
29
|
-
"production": [
|
|
30
|
-
|
|
23
|
+
"production": [
|
|
24
|
+
">0.2%",
|
|
25
|
+
"not dead",
|
|
26
|
+
"not op_mini all"
|
|
27
|
+
],
|
|
28
|
+
"development": [
|
|
29
|
+
"last 1 chrome version",
|
|
30
|
+
"last 1 firefox version",
|
|
31
|
+
"last 1 safari version"
|
|
32
|
+
]
|
|
31
33
|
},
|
|
32
34
|
"dependencies": {
|
|
35
|
+
"react": "^17.0.2",
|
|
36
|
+
"react-dom": "^17.0.2",
|
|
37
|
+
"@emotion/react": "^11.7.1",
|
|
38
|
+
"@emotion/styled": "^11.6.0",
|
|
39
|
+
"@mui/icons-material": "^5.3.0",
|
|
40
|
+
"@mui/lab": "5.0.0-alpha.65",
|
|
41
|
+
"@mui/material": "^5.3.0",
|
|
42
|
+
"@mui/styles": "^5.3.0",
|
|
43
|
+
"@mui/system": "^5.3.0",
|
|
33
44
|
"@sentry/react": "^6.17.7",
|
|
34
45
|
"@sentry/tracing": "^6.17.7",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"@mui/icons-material": "^5.0.4",
|
|
38
|
-
"@mui/lab": "^5.0.0-alpha.51",
|
|
39
|
-
"@mui/material": "^5.0.4",
|
|
40
|
-
"@mui/styles": "^5.0.1",
|
|
41
|
-
"axios": "^0.23.0",
|
|
42
|
-
"centrifuge": "2.8.3",
|
|
46
|
+
"axios": "^0.25.0",
|
|
47
|
+
"centrifuge": "2.8.4",
|
|
43
48
|
"classnames": "^2.3.1",
|
|
44
|
-
"date-fns": "^2.
|
|
45
|
-
"final-form": "^4.20.
|
|
49
|
+
"date-fns": "^2.28.0",
|
|
50
|
+
"final-form": "^4.20.6",
|
|
46
51
|
"final-form-arrays": "^3.0.2",
|
|
47
52
|
"js-cookie": "^2.2.1",
|
|
48
|
-
"linkify-react": "^3.0.
|
|
49
|
-
"linkifyjs": "^3.0.
|
|
50
|
-
"mobx": "^6.3.
|
|
51
|
-
"mobx-keystone": "^0.
|
|
53
|
+
"linkify-react": "^3.0.4",
|
|
54
|
+
"linkifyjs": "^3.0.5",
|
|
55
|
+
"mobx": "^6.3.12",
|
|
56
|
+
"mobx-keystone": "^0.64.1",
|
|
52
57
|
"mobx-react": "^7.2.1",
|
|
53
|
-
"mobx-react-lite": "^3.2.
|
|
58
|
+
"mobx-react-lite": "^3.2.3",
|
|
54
59
|
"mobx-utils": "^6.0.4",
|
|
55
|
-
"notistack": "^2.0.
|
|
56
|
-
"qs": "^6.10.
|
|
60
|
+
"notistack": "^2.0.3",
|
|
61
|
+
"qs": "^6.10.3",
|
|
57
62
|
"react-error-boundary": "^3.1.4",
|
|
58
63
|
"react-final-form": "^6.5.7",
|
|
59
64
|
"react-final-form-arrays": "^3.1.3",
|
|
60
|
-
"react-
|
|
61
|
-
"react-
|
|
62
|
-
"react-virtuoso": "^2.2.8",
|
|
65
|
+
"react-intl": "^5.24.3",
|
|
66
|
+
"react-virtuoso": "^2.4.0",
|
|
63
67
|
"route-parser": "^0.0.5"
|
|
64
68
|
},
|
|
69
|
+
"lint-staged": {
|
|
70
|
+
"*.{js,jsx,ts,tsx,json,css,scss,md}": "prettier --write"
|
|
71
|
+
},
|
|
65
72
|
"devDependencies": {
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"@testing-library/user-event": "^12.8.3",
|
|
76
|
-
"@types/jest": "^26.0.24",
|
|
73
|
+
"@babel/core": "^7.16.7",
|
|
74
|
+
"@babel/plugin-proposal-decorators": "^7.16.7",
|
|
75
|
+
"@babel/plugin-transform-runtime": "^7.17.10",
|
|
76
|
+
"@babel/preset-env": "^7.16.8",
|
|
77
|
+
"@babel/preset-react": "^7.16.7",
|
|
78
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
79
|
+
"@babel/runtime": "^7.16.7",
|
|
80
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
|
|
81
|
+
"@types/dotenv-webpack": "^7.0.3",
|
|
77
82
|
"@types/js-cookie": "^2.2.7",
|
|
78
|
-
"@types/node": "^
|
|
83
|
+
"@types/node": "^17.0.10",
|
|
79
84
|
"@types/qs": "^6.9.7",
|
|
80
|
-
"@types/react": "^17.0.
|
|
81
|
-
"@types/react-dom": "^17.0.
|
|
85
|
+
"@types/react": "^17.0.38",
|
|
86
|
+
"@types/react-dom": "^17.0.11",
|
|
82
87
|
"@types/react-linkify": "^1.0.1",
|
|
83
|
-
"@types/react-router-dom": "^5.3.
|
|
84
|
-
"@types/route-parser": "^0.1.
|
|
85
|
-
"@
|
|
86
|
-
"@typescript-eslint/
|
|
88
|
+
"@types/react-router-dom": "^5.3.3",
|
|
89
|
+
"@types/route-parser": "^0.1.4",
|
|
90
|
+
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
|
91
|
+
"@typescript-eslint/parser": "^5.10.0",
|
|
87
92
|
"autoprefixer": "9.0.0",
|
|
88
|
-
"
|
|
89
|
-
"
|
|
93
|
+
"babel-loader": "^8.2.3",
|
|
94
|
+
"cross-env": "^7.0.3",
|
|
95
|
+
"dotenv": "^14.2.0",
|
|
96
|
+
"dotenv-webpack": "^7.0.3",
|
|
97
|
+
"eslint-config-airbnb-typescript": "^16.1.0",
|
|
90
98
|
"eslint-config-prettier": "^8.3.0",
|
|
91
|
-
"eslint-plugin-import": "^2.25.
|
|
92
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
93
|
-
"eslint-plugin-react": "^7.
|
|
94
|
-
"eslint-plugin-react-hooks": "^4.
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"react-app-rewired": "^2.1.8",
|
|
103
|
-
"react-scripts": "^4.0.3",
|
|
104
|
-
"react-use": "^17.3.1",
|
|
105
|
-
"rollup": "^2.58.0",
|
|
106
|
-
"rollup-plugin-analyzer": "^4.0.0",
|
|
107
|
-
"rollup-plugin-copy": "^3.4.0",
|
|
108
|
-
"rollup-plugin-font": "^1.1.2",
|
|
109
|
-
"rollup-plugin-image-files": "^1.4.2",
|
|
110
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
111
|
-
"rollup-plugin-postcss": "^4.0.1",
|
|
112
|
-
"rollup-plugin-scss": "^3.0.0",
|
|
113
|
-
"rollup-plugin-svg-import": "^1.5.1",
|
|
114
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
115
|
-
"rollup-plugin-typescript2": "^0.30.0",
|
|
116
|
-
"rollup-plugin-base64": "^1.0.1",
|
|
117
|
-
"rollup-plugin-dotenv": "^0.3.0",
|
|
99
|
+
"eslint-plugin-import": "^2.25.4",
|
|
100
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
101
|
+
"eslint-plugin-react": "^7.28.0",
|
|
102
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
103
|
+
"fork-ts-checker-webpack-plugin": "^6.5.0",
|
|
104
|
+
"html-webpack-plugin": "^5.5.0",
|
|
105
|
+
"prettier": "^2.5.1",
|
|
106
|
+
"react-refresh": "^0.11.0",
|
|
107
|
+
"source-map-loader": "^3.0.1",
|
|
108
|
+
"ts-node": "^10.4.0",
|
|
109
|
+
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
|
118
110
|
"tslib": "^2.3.1",
|
|
119
|
-
"
|
|
111
|
+
"type-fest": "^2.10.0",
|
|
112
|
+
"typescript": "^4.5.4",
|
|
113
|
+
"url-loader": "^4.1.1",
|
|
114
|
+
"webpack": "^5.67.0",
|
|
115
|
+
"webpack-bundle-analyzer": "^4.5.0",
|
|
116
|
+
"webpack-cli": "^4.9.2",
|
|
117
|
+
"webpack-dev-server": "^4.7.3",
|
|
118
|
+
"webpack-merge": "^5.8.0"
|
|
120
119
|
},
|
|
121
120
|
"peerDependencies": {
|
|
122
121
|
"react": "^17.0.2",
|
|
@@ -126,5 +125,7 @@
|
|
|
126
125
|
"url": "https://github.com/VLprojects/chat/issues"
|
|
127
126
|
},
|
|
128
127
|
"homepage": "https://github.com/VLprojects/chat#readme",
|
|
129
|
-
"keywords": [
|
|
128
|
+
"keywords": [
|
|
129
|
+
"chat"
|
|
130
|
+
]
|
|
130
131
|
}
|
package/dist/App.d.ts
DELETED
package/dist/Chat.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IEvents } from './utils/eventBus/types';
|
|
3
|
-
export interface IChatProps {
|
|
4
|
-
apiUrl?: string;
|
|
5
|
-
appId?: string;
|
|
6
|
-
channelId?: string;
|
|
7
|
-
userToken?: string;
|
|
8
|
-
onEvent?: (data: IEvents) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const Chat: FC<IChatProps>;
|
package/dist/api/Api.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
-
export declare const GET: (address: string, params?: Record<string, unknown>, config?: AxiosRequestConfig) => Promise<unknown>;
|
|
3
|
-
export declare const PUT: (address: string, params?: Record<string, unknown>) => Promise<unknown>;
|
|
4
|
-
export declare const POST: (address: string, params?: FormData | Record<string, unknown>, config?: AxiosRequestConfig) => Promise<unknown>;
|
|
5
|
-
export declare const PATCH: (address: string, params?: Record<string, unknown>) => Promise<unknown>;
|
|
6
|
-
export declare const DELETE: (address: string, params?: Record<string, unknown>) => Promise<unknown>;
|
|
7
|
-
export declare const setToken: (token: string) => void;
|
|
8
|
-
export declare const initializeApi: (apiUrl: string) => void;
|
|
9
|
-
declare const _default: () => AxiosInstance;
|
|
10
|
-
export default _default;
|
package/dist/api/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, initializeApi, setToken, GET, POST, PATCH, DELETE, PUT } from './Api';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './LastMessage';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ChannelList';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import Channel from 'keystone/chat/channel';
|
|
2
|
-
import User from 'keystone/chat/user';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
interface IProps {
|
|
5
|
-
channel: Channel;
|
|
6
|
-
user: User;
|
|
7
|
-
clickRowHandler: (id: string) => void;
|
|
8
|
-
directChannelName: string;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: React.FunctionComponent<IProps>;
|
|
11
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './DirectListRow';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './DirectList';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Root } from 'keystone';
|
|
2
|
-
import User from 'keystone/chat/user';
|
|
3
|
-
export declare const getDirectsList: (root: Root) => Promise<void>;
|
|
4
|
-
export declare const getDirectChannelName: (root: Root, channelId: string) => string;
|
|
5
|
-
export declare const getDirectChannelList: (root: Root) => string[];
|
|
6
|
-
export declare const getChatWithUser: (root: Root, channelId: string) => User | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './LoadingStatus';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './MessageInputActions';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './MessageInput';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './MessageActions';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import Message from 'keystone/chat/message';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface IProps {
|
|
4
|
-
message: Message;
|
|
5
|
-
short: boolean;
|
|
6
|
-
last: boolean;
|
|
7
|
-
showLineTime: boolean;
|
|
8
|
-
index: number;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: React.FunctionComponent<IProps>;
|
|
11
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './MessageRow';
|
package/dist/components/MessageList/components/SystemMessage/components/ChangedChannel/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ChangedChannel';
|
package/dist/components/MessageList/components/SystemMessage/components/UserChanged/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './UserChanged';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './UserChangedChannel';
|
package/dist/components/MessageList/components/SystemMessage/components/UserJoined/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './UserJoined';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './SystemMessage';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Message from 'keystone/chat/message';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import User from 'keystone/chat/user';
|
|
4
|
-
export interface IProps {
|
|
5
|
-
index: number;
|
|
6
|
-
message: Message;
|
|
7
|
-
user?: User;
|
|
8
|
-
short?: boolean;
|
|
9
|
-
showLineTime: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const UserMessage: FC<IProps>;
|
|
12
|
-
export default UserMessage;
|
package/dist/components/MessageList/components/UserMessage/components/UserMessageAvatar/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './UserMessageAvatar';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './UserMessageDisplayName';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './UserMessage';
|