@bigbinary/neeto-team-members-frontend 2.4.11 → 2.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-team-members-frontend",
3
- "version": "2.4.11",
3
+ "version": "2.4.13",
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",
@@ -50,7 +50,7 @@
50
50
  "@babel/runtime": "7.20.1",
51
51
  "@bigbinary/eslint-plugin-neeto": "1.0.16",
52
52
  "@bigbinary/neeto-icons": "1.8.40",
53
- "@bigbinary/neetoui": "4.1.10",
53
+ "@bigbinary/neetoui": "4.1.11",
54
54
  "@faker-js/faker": "7.6.0",
55
55
  "@rollup/plugin-alias": "4.0.2",
56
56
  "@rollup/plugin-babel": "6.0.2",
@@ -61,11 +61,11 @@
61
61
  "@svgr/rollup": "6.5.1",
62
62
  "@vitejs/plugin-react": "^2.2.0",
63
63
  "antd": "4.24.3",
64
- "axios": "1.1.3",
64
+ "axios": "1.2.0",
65
65
  "babel-plugin-macros": "3.1.0",
66
66
  "babel-plugin-transform-react-remove-prop-types": "0.4.24",
67
67
  "classnames": "2.3.2",
68
- "eslint": "8.27.0",
68
+ "eslint": "8.28.0",
69
69
  "eslint-config-prettier": "8.5.0",
70
70
  "eslint-plugin-cypress": "2.12.1",
71
71
  "eslint-plugin-import": "2.26.0",
@@ -73,9 +73,9 @@
73
73
  "eslint-plugin-json": "3.1.0",
74
74
  "eslint-plugin-prettier": "4.2.1",
75
75
  "eslint-plugin-promise": "6.1.1",
76
- "eslint-plugin-react": "7.31.10",
76
+ "eslint-plugin-react": "7.31.11",
77
77
  "eslint-plugin-react-hooks": "4.6.0",
78
- "eslint-plugin-unicorn": "44.0.2",
78
+ "eslint-plugin-unicorn": "45.0.0",
79
79
  "eslint-plugin-unused-imports": "2.0.0",
80
80
  "formik": "2.2.9",
81
81
  "husky": "8.0.2",
@@ -84,7 +84,7 @@
84
84
  "json-server": "0.17.1",
85
85
  "lint-staged": "13.0.3",
86
86
  "pluralize": "8.0.0",
87
- "prettier": "2.7.1",
87
+ "prettier": "2.8.0",
88
88
  "prop-types": "15.8.1",
89
89
  "ramda": "0.28.0",
90
90
  "react": "17.0.2",
@@ -108,8 +108,8 @@
108
108
  },
109
109
  "peerDependencies": {
110
110
  "@bigbinary/neeto-icons": "1.8.40",
111
- "@bigbinary/neetoui": "4.1.10",
112
- "axios": "1.1.3",
111
+ "@bigbinary/neetoui": "4.1.11",
112
+ "axios": "1.2.0",
113
113
  "classnames": "2.3.2",
114
114
  "formik": "2.2.9",
115
115
  "ramda": "0.28.0",
package/types.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import React from "react";
2
+
1
3
  import type { ButtonProps } from "@bigbinary/neetoui";
2
4
 
3
5
  type IsEqual<T, U> =
@@ -65,11 +67,17 @@ type Role = {
65
67
  permissionsIds: string[];
66
68
  }
67
69
 
70
+ type FilterProps = {
71
+ [key: string]: string;
72
+ }
73
+
68
74
  type TeamMembersConfig = {
69
75
  alert?: Only<Alert>;
70
76
  createMember?: Only<CreateMember>;
71
77
  manageMember?: Only<ManageMember>;
72
78
  otherColumns?: object[];
79
+ otherFilterProps?: Only<FilterProps>;
80
+ otherMenuElements?: React.FC;
73
81
  permissions: Except<Permission, "delete">;
74
82
  rolesButtonProps?: ButtonProps;
75
83
  };
@@ -82,13 +90,14 @@ type RolesConfig = {
82
90
 
83
91
  export function TeamMembers(props: {
84
92
  config?: Only<TeamMembersConfig>;
85
- metaName?: "metaNames.member" | "metaNames.agent";
86
93
  }): JSX.Element;
87
94
 
88
95
  export function Roles(props: { config?: RolesConfig; }): JSX.Element;
89
96
 
90
97
  export function hasPermission(permissions: string[] | string): boolean;
91
98
 
99
+ export function refetchMembers(): void;
100
+
92
101
  export function MultipleEmailInput(props: {
93
102
  emails: string[];
94
103
  selectedMember: SelectedMember;