@vlprojects-chat/chat 0.0.24 → 0.0.28
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/dist/Chat.d.ts +1 -0
- package/dist/api/Api.d.ts +9 -13
- package/dist/api/index.d.ts +1 -1
- package/dist/components/ChannelList/components/LastMessage/LastMessage.d.ts +7 -0
- package/dist/components/ChannelList/components/LastMessage/index.d.ts +1 -0
- package/dist/components/ChannelList/styles.d.ts +1 -1
- package/dist/components/CreateChannelForm/styles.d.ts +1 -1
- package/dist/components/DirectList/styles.d.ts +1 -1
- package/dist/components/Drawer/styles.d.ts +1 -1
- package/dist/components/MessageInput/components/MessageInputActions/MessageInputActions.d.ts +5 -0
- package/dist/components/MessageInput/components/MessageInputActions/index.d.ts +1 -0
- package/dist/components/MessageInput/index.d.ts +1 -0
- package/dist/components/MessageInput/styles.d.ts +1 -1
- package/dist/components/MessageList/MessageList.d.ts +9 -0
- package/dist/components/MessageList/components/MessageActions/MessageActions.d.ts +9 -0
- package/dist/components/MessageList/components/MessageActions/index.d.ts +1 -0
- package/dist/components/MessageList/components/SystemMessage/SystemMessage.d.ts +7 -0
- package/dist/components/MessageList/components/SystemMessage/index.d.ts +1 -0
- package/dist/components/MessageList/components/SystemMessage/styles.d.ts +2 -0
- package/dist/components/MessageList/components/UserMessage/UserMessage.d.ts +13 -0
- package/dist/components/MessageList/components/UserMessage/index.d.ts +1 -0
- package/dist/components/MessageList/components/UserMessage/styles.d.ts +3 -0
- package/dist/components/MessageList/index.d.ts +1 -7
- package/dist/components/MessageList/styles.d.ts +1 -1
- package/dist/components/NameInput/styles.d.ts +1 -1
- package/dist/components/PinnedMessageList/PinnedMessageList.d.ts +3 -0
- package/dist/components/PinnedMessageList/index.d.ts +1 -0
- package/dist/components/PinnedMessageList/styles.d.ts +2 -0
- package/dist/components/SubHeader/SubHeader.d.ts +7 -0
- package/dist/components/SubHeader/index.d.ts +1 -7
- package/dist/components/SubHeader/styles.d.ts +1 -1
- package/dist/containers/Auth/components/ActionBlock/styles.d.ts +1 -1
- package/dist/containers/Auth/components/Guest/styles.d.ts +1 -1
- package/dist/containers/Auth/components/Signin/styles.d.ts +1 -1
- package/dist/containers/Auth/components/Signup/styles.d.ts +1 -1
- package/dist/containers/Auth/styles.d.ts +1 -1
- package/dist/containers/ChannelPage/service.d.ts +8 -0
- package/dist/containers/ChannelPage/styles.d.ts +1 -1
- package/dist/containers/Channels/components/Footer/styles.d.ts +1 -1
- package/dist/containers/Channels/styles.d.ts +1 -1
- package/dist/containers/CreatePollPage/components/CreatePollForm/styles.d.ts +1 -1
- package/dist/containers/CreatePollPage/components/ErrorMessage/styles.d.ts +1 -1
- package/dist/containers/CreatePollPage/styles.d.ts +1 -1
- package/dist/containers/PollListPage/components/PollCard/styles.d.ts +1 -1
- package/dist/containers/PollListPage/services.d.ts +1 -1
- package/dist/containers/PollPortal/services.d.ts +1 -1
- package/dist/containers/PollPortal/styles.d.ts +1 -1
- package/dist/containers/Profile/styles.d.ts +1 -1
- package/dist/containers/UsersListPage/components/UserList/styles.d.ts +1 -1
- package/dist/containers/UsersListPage/components/UserRow/styles.d.ts +1 -1
- package/dist/hoc/MoreButtonHOC.d.ts +9 -0
- package/dist/index.es.js +200 -5
- package/dist/index.js +200 -5
- package/dist/keystone/auth.d.ts +16 -6
- package/dist/keystone/chat/channel.d.ts +30 -4
- package/dist/keystone/chat/index.d.ts +9 -3
- package/dist/keystone/chat/message.d.ts +14 -3
- package/dist/keystone/chat/pinnedMessage.d.ts +21 -0
- package/dist/keystone/chat/poll.d.ts +15 -3
- package/dist/keystone/chat/pub.d.ts +7 -3
- package/dist/keystone/chat/user.d.ts +16 -3
- package/dist/keystone/index.d.ts +13 -3
- package/dist/keystone/settings.d.ts +34 -13
- package/dist/keystone/socket.d.ts +7 -5
- package/dist/keystone/ui.d.ts +17 -6
- package/dist/locales/index.d.ts +18 -6
- package/dist/theme/consts.d.ts +32 -18
- package/dist/theme/muicssbaseline.d.ts +4 -0
- package/dist/theme/theme.d.ts +1 -1
- package/dist/types/const.d.ts +1 -0
- package/dist/types/serverResponses.d.ts +6 -0
- package/dist/types/socketEvents.d.ts +4 -1
- package/dist/ui-kit/HeaderTitle/HeaderTitile.d.ts +8 -0
- package/dist/ui-kit/HeaderTitle/index.d.ts +1 -0
- package/dist/ui-kit/HeaderTitle/styles.d.ts +2 -0
- package/dist/ui-kit/components/Avatar/Avatar.d.ts +2 -0
- package/dist/ui-kit/components/Avatar/styles.d.ts +1 -1
- package/dist/ui-kit/components/Button/index.d.ts +1 -1
- package/dist/ui-kit/components/Button/styles.d.ts +1 -1
- package/dist/ui-kit/components/Checkbox/styles.d.ts +1 -1
- package/dist/ui-kit/components/DropMenu/DropMenu.d.ts +8 -0
- package/dist/ui-kit/components/DropMenu/DropMenuItem.d.ts +10 -0
- package/dist/ui-kit/components/DropMenu/index.d.ts +2 -0
- package/dist/ui-kit/components/DropMenu/styles.d.ts +2 -0
- package/dist/ui-kit/components/FormErrorMessage/styles.d.ts +1 -1
- package/dist/ui-kit/components/Input/styles.d.ts +1 -1
- package/dist/ui-kit/components/Loaders/WineLoader/styles.d.ts +1 -1
- package/dist/ui-kit/icons/{ChatUsersIcon.d.ts → CloseCircleIcon.d.ts} +0 -0
- package/dist/ui-kit/icons/PinnedIcon.d.ts +10 -0
- package/dist/ui-kit/icons/SubmitMessageIcon.d.ts +10 -0
- package/dist/utils/common.d.ts +1 -0
- package/dist/utils/errors.d.ts +1 -1
- package/package.json +59 -67
- package/dist/components/MessageList/UserMessage/SystemMessage.d.ts +0 -9
- package/dist/components/MessageList/UserMessage/index.d.ts +0 -13
- package/dist/components/MessageList/UserMessage/styles.d.ts +0 -2
- package/dist/ui-kit/ChannelName/ChannelName.d.ts +0 -6
- package/dist/ui-kit/ChannelName/index.d.ts +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (props?: any) => import("@
|
|
1
|
+
declare const _default: (props?: any) => import("@mui/styles").ClassNameMap<"error">;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (props?: any) => import("@
|
|
1
|
+
declare const _default: (props?: any) => import("@mui/styles").ClassNameMap<"input" | "medium" | "text" | "large" | "fullWidth" | "outlined">;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (props?: any) => import("@
|
|
1
|
+
declare const _default: (props?: any) => import("@mui/styles").ClassNameMap<"wineLoader" | "left" | "right" | "top" | "wineglass" | "ul" | "li" | "@keyframes rotate1" | "@keyframes rotate2" | "@keyframes fadeInUp">;
|
|
2
2
|
export default _default;
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CSSProperties, ReactElement } from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
fill?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: (props: IProps) => ReactElement;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CSSProperties, ReactElement } from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
fill?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: (props: IProps) => ReactElement;
|
|
10
|
+
export default _default;
|
package/dist/utils/common.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ import Poll from '../keystone/chat/poll';
|
|
|
3
3
|
export declare const findAppInitialData: () => {
|
|
4
4
|
channelIdFromAttr?: string | null | undefined;
|
|
5
5
|
appIdFromAttr?: string | null | undefined;
|
|
6
|
+
apiUrlFromAttr?: string | null | undefined;
|
|
6
7
|
};
|
|
7
8
|
export declare const convertServerPollToModel: (poll: IServerPoll) => Poll;
|
package/dist/utils/errors.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vlprojects-chat/chat",
|
|
3
3
|
"author": "vlprojects",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.28",
|
|
5
5
|
"description": "chat",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.es.js",
|
|
9
|
-
"files": [
|
|
10
|
-
"dist"
|
|
11
|
-
],
|
|
9
|
+
"files": ["dist"],
|
|
12
10
|
"types": "dist/lib/index.d.ts",
|
|
13
11
|
"repository": {
|
|
14
12
|
"type": "git",
|
|
@@ -17,7 +15,7 @@
|
|
|
17
15
|
"scripts": {
|
|
18
16
|
"start": "react-scripts start",
|
|
19
17
|
"build": "react-app-rewired build",
|
|
20
|
-
"dist": "rm -rf dist && rollup -c",
|
|
18
|
+
"dist": "rm -rf dist && node --max-old-space-size=8192 node_modules/rollup/dist/bin/rollup -c rollup.config.js",
|
|
21
19
|
"test": "react-scripts test",
|
|
22
20
|
"eject": "react-scripts eject",
|
|
23
21
|
"lint:js": "eslint ./src --ext .ts,.tsx",
|
|
@@ -25,101 +23,97 @@
|
|
|
25
23
|
"mock": "json-server --watch ./src/mock-data/channels.json --routes ./src/mock-data/routes.json --port 8000"
|
|
26
24
|
},
|
|
27
25
|
"eslintConfig": {
|
|
28
|
-
"extends": [
|
|
29
|
-
"react-app",
|
|
30
|
-
"react-app/jest"
|
|
31
|
-
]
|
|
26
|
+
"extends": ["react-app", "react-app/jest"]
|
|
32
27
|
},
|
|
33
28
|
"browserslist": {
|
|
34
|
-
"production": [
|
|
35
|
-
|
|
36
|
-
"not dead",
|
|
37
|
-
"not op_mini all"
|
|
38
|
-
],
|
|
39
|
-
"development": [
|
|
40
|
-
"last 1 chrome version",
|
|
41
|
-
"last 1 firefox version",
|
|
42
|
-
"last 1 safari version"
|
|
43
|
-
]
|
|
29
|
+
"production": [">0.2%", "not dead", "not op_mini all"],
|
|
30
|
+
"development": ["last 1 chrome version", "last 1 firefox version", "last 1 safari version"]
|
|
44
31
|
},
|
|
45
32
|
"dependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@material
|
|
49
|
-
"
|
|
50
|
-
"
|
|
33
|
+
"@emotion/react": "^11.5.0",
|
|
34
|
+
"@emotion/styled": "^11.3.0",
|
|
35
|
+
"@mui/icons-material": "^5.0.4",
|
|
36
|
+
"@mui/lab": "^5.0.0-alpha.51",
|
|
37
|
+
"@mui/material": "^5.0.4",
|
|
38
|
+
"@mui/styles": "^5.0.1",
|
|
39
|
+
"axios": "^0.23.0",
|
|
40
|
+
"centrifuge": "2.8.3",
|
|
51
41
|
"classnames": "^2.3.1",
|
|
52
|
-
"date-fns": "^2.
|
|
53
|
-
"final-form": "^4.20.
|
|
42
|
+
"date-fns": "^2.25.0",
|
|
43
|
+
"final-form": "^4.20.4",
|
|
54
44
|
"final-form-arrays": "^3.0.2",
|
|
55
45
|
"js-cookie": "^2.2.1",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"mobx
|
|
59
|
-
"mobx-
|
|
46
|
+
"linkify-react": "^3.0.3",
|
|
47
|
+
"linkifyjs": "^3.0.3",
|
|
48
|
+
"mobx": "^6.3.5",
|
|
49
|
+
"mobx-keystone": "^0.63.2",
|
|
50
|
+
"mobx-react": "^7.2.1",
|
|
51
|
+
"mobx-react-lite": "^3.2.1",
|
|
60
52
|
"mobx-utils": "^6.0.4",
|
|
61
|
-
"notistack": "^
|
|
53
|
+
"notistack": "^2.0.2",
|
|
62
54
|
"qs": "^6.10.1",
|
|
63
|
-
"react-
|
|
64
|
-
"react-final-form": "^6.5.3",
|
|
55
|
+
"react-final-form": "^6.5.7",
|
|
65
56
|
"react-final-form-arrays": "^3.1.3",
|
|
66
|
-
"react-intl": "^5.
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"username-generator": "^1.1.0"
|
|
57
|
+
"react-intl": "^5.21.0",
|
|
58
|
+
"react-virtualized": "^9.22.3",
|
|
59
|
+
"route-parser": "^0.0.5"
|
|
70
60
|
},
|
|
71
61
|
"devDependencies": {
|
|
72
|
-
"@rollup/plugin-alias": "^3.1.
|
|
73
|
-
"@rollup/plugin-commonjs": "^
|
|
62
|
+
"@rollup/plugin-alias": "^3.1.6",
|
|
63
|
+
"@rollup/plugin-commonjs": "^20.0.0",
|
|
74
64
|
"@rollup/plugin-json": "^4.1.0",
|
|
65
|
+
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
66
|
+
"@rollup/plugin-url": "^6.1.0",
|
|
75
67
|
"@rollup/plugin-image": "^2.1.1",
|
|
76
|
-
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
77
|
-
"@rollup/plugin-url": "^6.0.0",
|
|
78
68
|
"@svgr/rollup": "^5.5.0",
|
|
79
|
-
"@testing-library/jest-dom": "^5.
|
|
80
|
-
"@testing-library/react": "^11.
|
|
81
|
-
"@testing-library/user-event": "^12.
|
|
82
|
-
"@types/jest": "^26.0.
|
|
83
|
-
"@types/js-cookie": "^2.2.
|
|
84
|
-
"@types/node": "^
|
|
69
|
+
"@testing-library/jest-dom": "^5.14.1",
|
|
70
|
+
"@testing-library/react": "^11.2.7",
|
|
71
|
+
"@testing-library/user-event": "^12.8.3",
|
|
72
|
+
"@types/jest": "^26.0.24",
|
|
73
|
+
"@types/js-cookie": "^2.2.7",
|
|
74
|
+
"@types/node": "^16.11.1",
|
|
85
75
|
"@types/qs": "^6.9.7",
|
|
86
|
-
"@types/react": "^17.0.
|
|
87
|
-
"@types/react-dom": "^17.0.
|
|
88
|
-
"@types/react-
|
|
76
|
+
"@types/react": "^17.0.32",
|
|
77
|
+
"@types/react-dom": "^17.0.10",
|
|
78
|
+
"@types/react-linkify": "^1.0.1",
|
|
79
|
+
"@types/react-router-dom": "^5.3.1",
|
|
80
|
+
"@types/react-virtualized": "^9.21.14",
|
|
89
81
|
"@types/route-parser": "^0.1.3",
|
|
90
82
|
"@types/socket.io": "^3.0.2",
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "^4.
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
92
84
|
"autoprefixer": "9.0.0",
|
|
93
85
|
"customize-cra": "^1.0.0",
|
|
94
86
|
"eslint-config-airbnb-typescript": "^12.3.1",
|
|
95
87
|
"eslint-config-prettier": "^8.3.0",
|
|
96
|
-
"eslint-plugin-import": "^2.
|
|
88
|
+
"eslint-plugin-import": "^2.25.2",
|
|
97
89
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
98
|
-
"eslint-plugin-react": "^7.
|
|
90
|
+
"eslint-plugin-react": "^7.26.1",
|
|
99
91
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
100
|
-
"json-server": "^0.
|
|
92
|
+
"json-server": "^0.17.0",
|
|
101
93
|
"module-alias": "^2.2.2",
|
|
102
|
-
"nanoid": "^3.1.
|
|
103
|
-
"
|
|
94
|
+
"nanoid": "^3.1.30",
|
|
95
|
+
"node-sass": "^6.0.1",
|
|
96
|
+
"postcss": "^8.3.9",
|
|
104
97
|
"postcss-loader": "^5.3.0",
|
|
98
|
+
"prettier": "^2.4.1",
|
|
105
99
|
"react-app-rewired": "^2.1.8",
|
|
106
100
|
"react-scripts": "^4.0.3",
|
|
107
|
-
"react-use": "^17.
|
|
108
|
-
"rollup": "^2.
|
|
101
|
+
"react-use": "^17.3.1",
|
|
102
|
+
"rollup": "^2.58.0",
|
|
109
103
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
110
|
-
"rollup-plugin-base64": "^1.0.1",
|
|
111
104
|
"rollup-plugin-copy": "^3.4.0",
|
|
112
|
-
"rollup-plugin-dotenv": "^0.3.0",
|
|
113
105
|
"rollup-plugin-font": "^1.1.2",
|
|
114
106
|
"rollup-plugin-image-files": "^1.4.2",
|
|
115
107
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
116
|
-
"rollup-plugin-postcss": "^4.0.
|
|
117
|
-
"rollup-plugin-scss": "^
|
|
108
|
+
"rollup-plugin-postcss": "^4.0.1",
|
|
109
|
+
"rollup-plugin-scss": "^3.0.0",
|
|
118
110
|
"rollup-plugin-svg-import": "^1.5.1",
|
|
119
111
|
"rollup-plugin-terser": "^7.0.2",
|
|
120
112
|
"rollup-plugin-typescript2": "^0.30.0",
|
|
121
|
-
"
|
|
122
|
-
"
|
|
113
|
+
"rollup-plugin-base64": "^1.0.1",
|
|
114
|
+
"rollup-plugin-dotenv": "^0.3.0",
|
|
115
|
+
"tslib": "^2.3.1",
|
|
116
|
+
"typescript": "^4.4.4"
|
|
123
117
|
},
|
|
124
118
|
"peerDependencies": {
|
|
125
119
|
"react": "^17.0.2",
|
|
@@ -129,7 +123,5 @@
|
|
|
129
123
|
"url": "https://github.com/VLprojects/chat/issues"
|
|
130
124
|
},
|
|
131
125
|
"homepage": "https://github.com/VLprojects/chat#readme",
|
|
132
|
-
"keywords": [
|
|
133
|
-
"chat"
|
|
134
|
-
]
|
|
126
|
+
"keywords": ["chat"]
|
|
135
127
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import User from '../../../keystone/chat/user';
|
|
3
|
-
interface UserMessageProps {
|
|
4
|
-
own?: boolean;
|
|
5
|
-
user?: User;
|
|
6
|
-
message: string;
|
|
7
|
-
date?: string;
|
|
8
|
-
isNew?: boolean;
|
|
9
|
-
type?: 'system';
|
|
10
|
-
short?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: React.FunctionComponent<UserMessageProps>;
|
|
13
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ChannelName';
|