@bigbinary/neeto-team-members-frontend 2.3.2 → 2.3.4
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 +3 -3
- package/dist/index.cjs.js +58 -38
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +58 -38
- package/dist/index.esm.js.map +1 -1
- package/package.json +22 -39
- package/types.d.ts +12 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-team-members-frontend",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"description": "To manage team members across neeto products.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-team-members-frontend#readme",
|
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
"types": "types.d.ts",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "NODE_ENV=production rollup -c --environment production",
|
|
21
|
-
"dev": "(trap 'kill 0' SIGINT;
|
|
21
|
+
"dev": "(trap 'kill 0' SIGINT; vite & yarn server)",
|
|
22
22
|
"prepare": "husky install",
|
|
23
|
-
"server": "node example/db"
|
|
24
|
-
"start": "NODE_ENV=development webpack-dev-server --open --mode development --config webpack.dev.config.js"
|
|
23
|
+
"server": "node example/db"
|
|
25
24
|
},
|
|
26
25
|
"lint-staged": {
|
|
27
26
|
"{src,example}/**/*.{js,jsx,json}": [
|
|
@@ -39,37 +38,34 @@
|
|
|
39
38
|
},
|
|
40
39
|
"dependencies": {},
|
|
41
40
|
"devDependencies": {
|
|
42
|
-
"@babel/core": "7.
|
|
43
|
-
"@babel/eslint-parser": "7.
|
|
41
|
+
"@babel/core": "7.19.1",
|
|
42
|
+
"@babel/eslint-parser": "7.19.1",
|
|
44
43
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
45
44
|
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
|
|
46
45
|
"@babel/plugin-proposal-numeric-separator": "7.18.6",
|
|
47
|
-
"@babel/plugin-
|
|
48
|
-
"@babel/
|
|
46
|
+
"@babel/plugin-proposal-optional-chaining": "7.18.9",
|
|
47
|
+
"@babel/plugin-transform-runtime": "7.19.1",
|
|
48
|
+
"@babel/preset-env": "7.19.1",
|
|
49
49
|
"@babel/preset-react": "7.18.6",
|
|
50
|
-
"@babel/runtime": "7.
|
|
50
|
+
"@babel/runtime": "7.19.0",
|
|
51
51
|
"@bigbinary/eslint-plugin-neeto": "1.0.12",
|
|
52
|
-
"@bigbinary/neeto-icons": "1.8.
|
|
52
|
+
"@bigbinary/neeto-icons": "1.8.38",
|
|
53
53
|
"@bigbinary/neetoui": "3.5.17",
|
|
54
54
|
"@faker-js/faker": "7.5.0",
|
|
55
|
-
"@pmmmwh/react-refresh-webpack-plugin": "0.5.7",
|
|
56
55
|
"@rollup/plugin-alias": "3.1.9",
|
|
57
56
|
"@rollup/plugin-babel": "5.3.1",
|
|
58
57
|
"@rollup/plugin-commonjs": "22.0.2",
|
|
59
58
|
"@rollup/plugin-json": "4.1.0",
|
|
60
|
-
"@rollup/plugin-node-resolve": "
|
|
59
|
+
"@rollup/plugin-node-resolve": "14.1.0",
|
|
61
60
|
"@rollup/plugin-replace": "4.0.0",
|
|
62
61
|
"@svgr/rollup": "6.3.1",
|
|
63
|
-
"
|
|
62
|
+
"@vitejs/plugin-react": "^2.1.0",
|
|
63
|
+
"antd": "4.23.1",
|
|
64
64
|
"axios": "0.27.2",
|
|
65
|
-
"babel-loader": "8.2.5",
|
|
66
65
|
"babel-plugin-macros": "3.1.0",
|
|
67
66
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
68
|
-
"classnames": "2.3.
|
|
69
|
-
"
|
|
70
|
-
"css-loader": "6.7.1",
|
|
71
|
-
"dotenv": "16.0.2",
|
|
72
|
-
"eslint": "8.23.0",
|
|
67
|
+
"classnames": "2.3.2",
|
|
68
|
+
"eslint": "8.23.1",
|
|
73
69
|
"eslint-config-prettier": "8.5.0",
|
|
74
70
|
"eslint-plugin-cypress": "2.12.1",
|
|
75
71
|
"eslint-plugin-import": "2.26.0",
|
|
@@ -77,33 +73,24 @@
|
|
|
77
73
|
"eslint-plugin-json": "3.1.0",
|
|
78
74
|
"eslint-plugin-prettier": "4.2.1",
|
|
79
75
|
"eslint-plugin-promise": "6.0.1",
|
|
80
|
-
"eslint-plugin-react": "7.31.
|
|
76
|
+
"eslint-plugin-react": "7.31.8",
|
|
81
77
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
82
78
|
"eslint-plugin-unicorn": "43.0.2",
|
|
83
79
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
84
|
-
"file-loader": "6.2.0",
|
|
85
80
|
"formik": "2.2.9",
|
|
86
|
-
"html-loader": "4.1.0",
|
|
87
|
-
"html-webpack-plugin": "5.5.0",
|
|
88
81
|
"husky": "8.0.1",
|
|
89
82
|
"i18next": "21.9.1",
|
|
90
83
|
"i18next-browser-languagedetector": "6.1.5",
|
|
91
84
|
"json-server": "0.17.0",
|
|
92
85
|
"lint-staged": "13.0.3",
|
|
93
|
-
"mini-css-extract-plugin": "2.6.1",
|
|
94
|
-
"mixpanel-browser": "2.45.0",
|
|
95
|
-
"postcss": "8.4.16",
|
|
96
|
-
"postcss-loader": "7.0.1",
|
|
97
|
-
"postcss-preset-env": "7.8.0",
|
|
98
86
|
"prettier": "2.7.1",
|
|
99
87
|
"prop-types": "15.8.1",
|
|
100
88
|
"ramda": "0.28.0",
|
|
101
89
|
"react": "17.0.2",
|
|
102
90
|
"react-dom": "17.0.2",
|
|
103
91
|
"react-dropzone": "14.2.2",
|
|
104
|
-
"react-i18next": "11.18.
|
|
92
|
+
"react-i18next": "11.18.6",
|
|
105
93
|
"react-query": "3.39.2",
|
|
106
|
-
"react-refresh": "0.14.0",
|
|
107
94
|
"react-router-dom": "5.3.3",
|
|
108
95
|
"react-router-nav-prompt": "0.4.1",
|
|
109
96
|
"react-scroll-sync": "0.11.0",
|
|
@@ -114,20 +101,16 @@
|
|
|
114
101
|
"rollup-plugin-cleaner": "1.0.0",
|
|
115
102
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
116
103
|
"rollup-plugin-styles": "4.0.0",
|
|
117
|
-
"sass": "1.54.
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"uuid": "8.3.2",
|
|
121
|
-
"webpack": "5.74.0",
|
|
122
|
-
"webpack-cli": "4.10.0",
|
|
123
|
-
"webpack-dev-server": "4.10.1",
|
|
104
|
+
"sass": "1.54.9",
|
|
105
|
+
"uuid": "9.0.0",
|
|
106
|
+
"vite": "3.1.1",
|
|
124
107
|
"yup": "0.32.11"
|
|
125
108
|
},
|
|
126
109
|
"peerDependencies": {
|
|
127
|
-
"@bigbinary/neeto-icons": "1.8.
|
|
110
|
+
"@bigbinary/neeto-icons": "1.8.38",
|
|
128
111
|
"@bigbinary/neetoui": "3.5.17",
|
|
129
112
|
"axios": "0.27.2",
|
|
130
|
-
"classnames": "2.3.
|
|
113
|
+
"classnames": "2.3.2",
|
|
131
114
|
"formik": "2.2.9",
|
|
132
115
|
"ramda": "0.28.0",
|
|
133
116
|
"react": "17.0.2",
|
package/types.d.ts
CHANGED
|
@@ -14,8 +14,9 @@ type Except<ObjectType, KeysType extends keyof ObjectType> = {
|
|
|
14
14
|
type Only<ObjectType> = Except<ObjectType, null>;
|
|
15
15
|
|
|
16
16
|
type Member = {
|
|
17
|
-
name: string;
|
|
18
17
|
active: boolean;
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
type Permission = {
|
|
@@ -28,17 +29,26 @@ type Permission = {
|
|
|
28
29
|
interface Alert {
|
|
29
30
|
message?: (member: Only<Member>) => string;
|
|
30
31
|
title?: (member: Only<Member>) => string;
|
|
31
|
-
}
|
|
32
|
+
}
|
|
32
33
|
|
|
33
34
|
type Breadcrumb = {
|
|
34
35
|
text: string;
|
|
35
36
|
link: string;
|
|
36
37
|
};
|
|
37
38
|
|
|
39
|
+
type onSuccess = {
|
|
40
|
+
callback: () => void;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type CreateMember = {
|
|
44
|
+
onSuccess: Only<onSuccess>;
|
|
45
|
+
}
|
|
46
|
+
|
|
38
47
|
type Header = { breadcrumbs: Breadcrumb[]; };
|
|
39
48
|
|
|
40
49
|
type TeamMembersConfig = {
|
|
41
50
|
alert?: Only<Alert>;
|
|
51
|
+
createMember?: Only<CreateMember>;
|
|
42
52
|
permissions: Except<Permission, "delete">;
|
|
43
53
|
rolesButtonProps?: ButtonProps;
|
|
44
54
|
};
|