@bigbinary/neeto-team-members-frontend 2.5.1 → 2.5.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-team-members-frontend",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
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",
@@ -19,6 +19,7 @@
19
19
  "scripts": {
20
20
  "build": "NODE_ENV=production rollup -c --environment production",
21
21
  "dev": "(trap 'kill 0' SIGINT; vite & yarn server)",
22
+ "start": "vite",
22
23
  "prepare": "husky install",
23
24
  "server": "node example/db"
24
25
  },
@@ -37,7 +38,7 @@
37
38
  ]
38
39
  },
39
40
  "devDependencies": {
40
- "@babel/core": "7.20.7",
41
+ "@babel/core": "7.20.12",
41
42
  "@babel/eslint-parser": "7.19.1",
42
43
  "@babel/plugin-proposal-class-properties": "7.18.6",
43
44
  "@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
@@ -48,11 +49,13 @@
48
49
  "@babel/preset-react": "7.18.6",
49
50
  "@babel/runtime": "7.20.7",
50
51
  "@bigbinary/eslint-plugin-neeto": "1.0.16",
51
- "@bigbinary/neeto-commons-frontend": "2.0.23",
52
- "@bigbinary/neeto-filters-frontend": "2.1.11",
53
- "@bigbinary/neeto-icons": "1.8.46",
54
- "@bigbinary/neetoui": "4.1.38",
52
+ "@bigbinary/neeto-commons-frontend": "2.0.24",
53
+ "@bigbinary/neeto-filters-frontend": "2.3.2",
54
+ "@bigbinary/neeto-icons": "1.9.1",
55
+ "@bigbinary/neetoui": "4.1.43",
55
56
  "@faker-js/faker": "7.6.0",
57
+ "@honeybadger-io/js": "4.8.2",
58
+ "@honeybadger-io/react": "4.8.2",
56
59
  "@rollup/plugin-alias": "4.0.2",
57
60
  "@rollup/plugin-babel": "6.0.3",
58
61
  "@rollup/plugin-commonjs": "24.0.0",
@@ -60,14 +63,14 @@
60
63
  "@rollup/plugin-node-resolve": "15.0.1",
61
64
  "@rollup/plugin-replace": "5.0.2",
62
65
  "@svgr/rollup": "6.5.1",
63
- "@vitejs/plugin-react": "^3.0.0",
66
+ "@vitejs/plugin-react": "3.0.1",
64
67
  "antd": "4.24.3",
65
68
  "axios": "1.2.2",
66
69
  "babel-plugin-macros": "3.1.0",
67
70
  "babel-plugin-transform-react-remove-prop-types": "0.4.24",
68
71
  "classnames": "2.3.2",
69
- "eslint": "8.30.0",
70
- "eslint-config-prettier": "8.5.0",
72
+ "eslint": "8.31.0",
73
+ "eslint-config-prettier": "8.6.0",
71
74
  "eslint-plugin-cypress": "2.12.1",
72
75
  "eslint-plugin-import": "2.26.0",
73
76
  "eslint-plugin-jam3": "0.2.3",
@@ -79,19 +82,20 @@
79
82
  "eslint-plugin-unicorn": "45.0.2",
80
83
  "eslint-plugin-unused-imports": "2.0.0",
81
84
  "formik": "2.2.9",
82
- "husky": "8.0.2",
83
- "i18next": "22.4.6",
85
+ "husky": "8.0.3",
86
+ "i18next": "22.4.9",
84
87
  "i18next-browser-languagedetector": "7.0.1",
85
88
  "json-server": "0.17.1",
86
89
  "lint-staged": "13.1.0",
87
90
  "pluralize": "8.0.0",
88
- "prettier": "2.8.1",
91
+ "prettier": "2.8.2",
89
92
  "prop-types": "15.8.1",
90
93
  "qs": "6.11.0",
91
94
  "ramda": "0.28.0",
92
95
  "react": "17.0.2",
93
96
  "react-dom": "17.0.2",
94
- "react-i18next": "12.1.1",
97
+ "react-helmet": "6.1.0",
98
+ "react-i18next": "12.1.4",
95
99
  "react-query": "3.39.2",
96
100
  "react-router-dom": "5.3.3",
97
101
  "react-router-nav-prompt": "0.4.1",
@@ -105,19 +109,22 @@
105
109
  "rollup-plugin-styles": "4.0.0",
106
110
  "sass": "1.57.1",
107
111
  "uuid": "9.0.0",
108
- "vite": "4.0.3",
112
+ "vite": "4.0.4",
109
113
  "yup": "0.32.11"
110
114
  },
111
115
  "peerDependencies": {
112
- "@bigbinary/neeto-filters-frontend": "2.1.11",
113
- "@bigbinary/neeto-icons": "1.8.46",
114
- "@bigbinary/neetoui": "4.1.38",
116
+ "@bigbinary/neeto-commons-frontend": "2.0.24",
117
+ "@bigbinary/neeto-icons": "1.9.1",
118
+ "@bigbinary/neetoui": "4.1.43",
119
+ "@honeybadger-io/js": "4.8.2",
120
+ "@honeybadger-io/react": "4.8.2",
115
121
  "axios": "1.2.2",
116
122
  "classnames": "2.3.2",
117
123
  "formik": "2.2.9",
118
124
  "ramda": "0.28.0",
119
125
  "react": "17.0.2",
120
126
  "react-dom": "17.0.2",
127
+ "react-helmet": "6.1.0",
121
128
  "react-query": "3.39.2",
122
129
  "react-router-dom": "5.3.3",
123
130
  "react-toastify": "8.2.0",
package/types.d.ts CHANGED
@@ -38,19 +38,17 @@ type Breadcrumb = {
38
38
  link: string;
39
39
  };
40
40
 
41
- type onSuccess = {
42
- callback: () => void;
43
- }
41
+ type onSuccess = { callback: () => void; }
44
42
 
45
- type CreateMember = {
46
- onSuccess: Only<onSuccess>;
47
- }
43
+ type CreateMember = { onSuccess: Only<onSuccess>; }
48
44
 
49
- type ManageMember = {
50
- component: React.FC;
51
- }
45
+ type UpdateMember = { onSuccess: Only<onSuccess>; }
46
+
47
+ type BulkUpdateMembers = { onSuccess: Only<onSuccess>; }
52
48
 
53
- type Header = { breadcrumbs: Breadcrumb[]; };
49
+ type ManageMember = { component: React.FC; }
50
+
51
+ type Header = { breadcrumbs: Breadcrumb[]; }
54
52
 
55
53
  type SelectedMember = {
56
54
  id: string;
@@ -58,22 +56,9 @@ type SelectedMember = {
58
56
  role: string;
59
57
  }
60
58
 
61
- type Role = {
62
- description: string;
63
- id: string;
64
- kind: string;
65
- name: string;
66
- organizationId: string;
67
- permissionsIds: string[];
68
- }
69
-
70
- type FilterProps = {
71
- [key: string]: string;
72
- }
59
+ type FilterProps = { [key: string]: string; }
73
60
 
74
- type RowProps = {
75
- [key: string]: string[];
76
- }
61
+ type RowProps = { [key: string]: string[]; }
77
62
 
78
63
  type TableProps = {
79
64
  onRowSelect: (props: {
@@ -96,6 +81,7 @@ type DefaultBulkActions = "activate" | "deactivate" | "role"
96
81
 
97
82
  type TeamMembersConfig = {
98
83
  alert?: Only<Alert>;
84
+ bulkUpdateMembers?: Only<BulkUpdateMembers>;
99
85
  createMember?: Only<CreateMember>;
100
86
  defaultFilterValues?: object;
101
87
  fetchApiResponse?: (response: object) => void;
@@ -109,6 +95,7 @@ type TeamMembersConfig = {
109
95
  permissions: Except<Permission, "delete">;
110
96
  rolesButtonProps?: ButtonProps;
111
97
  table?: TableProps;
98
+ updateMember: Only<UpdateMember>;
112
99
  };
113
100
 
114
101
  type RolesConfig = {
@@ -144,9 +131,7 @@ type ManageMemberOverlayProps = {
144
131
 
145
132
  type ManageMemberFormProps = Omit<ManageMemberOverlayProps, "isOpen">;
146
133
 
147
- export function TeamMembers(props: {
148
- config?: Only<TeamMembersConfig>;
149
- }): JSX.Element;
134
+ export function TeamMembers(props: { config?: Only<TeamMembersConfig>; }): JSX.Element;
150
135
 
151
136
  export function Roles(props: { config?: RolesConfig; }): JSX.Element;
152
137