@bigbinary/neeto-team-members-frontend 2.5.15 → 2.5.16
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 +2 -2
- package/dist/index.cjs.js +9 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -12,13 +12,13 @@ functioning of the package. Install all the peer dependencies using the below
|
|
|
12
12
|
command:
|
|
13
13
|
|
|
14
14
|
```zsh
|
|
15
|
-
yarn add @bigbinary/neeto-commons-frontend@2.0.35 @bigbinary/neeto-icons@1.9.10 @bigbinary/neetoui@4.3.
|
|
15
|
+
yarn add @bigbinary/neeto-commons-frontend@2.0.35 @bigbinary/neeto-icons@1.9.10 @bigbinary/neetoui@4.3.3 @honeybadger-io/js@5.1.1 @honeybadger-io/react@5.1.2 axios@1.3.3 classnames@2.3.2 formik@2.2.9 js-logger@1.6.1 ramda@0.28.0 react-helmet@6.1.0 react-query@3.39.3 react-router-dom@5.3.4 react-toastify@8.2.0 yup@1.0.0
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
2. Now install the latest **neetoTeamMembers** package using the below command:
|
|
19
19
|
|
|
20
20
|
```zsh
|
|
21
|
-
yarn add @bigbinary/neeto-team-members-frontend@2.5.
|
|
21
|
+
yarn add @bigbinary/neeto-team-members-frontend@2.5.16
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Usage
|
package/dist/index.cjs.js
CHANGED
|
@@ -11412,11 +11412,17 @@ const AppList = _ref => {
|
|
|
11412
11412
|
const selectedEmail = ramda.pluck("value", emails);
|
|
11413
11413
|
React.useEffect(() => {
|
|
11414
11414
|
if (savedStateRef.current.isAppListEnabled !== isAppListEnabled) {
|
|
11415
|
-
appRoles.forEach((
|
|
11415
|
+
appRoles.forEach((appRole, index) => {
|
|
11416
|
+
var _globalProps$appName;
|
|
11417
|
+
if ((appRole === null || appRole === void 0 ? void 0 : appRole.appName) === ((_globalProps$appName = initializers.globalProps.appName) === null || _globalProps$appName === void 0 ? void 0 : _globalProps$appName.substring(5))) {
|
|
11418
|
+
setFieldValue(`appRoles[${index}].isEnabled`, true);
|
|
11419
|
+
return;
|
|
11420
|
+
}
|
|
11416
11421
|
setFieldValue(`appRoles[${index}].isEnabled`, isAppListEnabled);
|
|
11417
11422
|
});
|
|
11418
11423
|
}
|
|
11419
11424
|
savedStateRef.current.isAppListEnabled = isAppListEnabled;
|
|
11425
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11420
11426
|
}, [isAppListEnabled]);
|
|
11421
11427
|
const buildRoleOptions = roles => roles.map(role => pure.toLabelAndValue(role.name));
|
|
11422
11428
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -11440,10 +11446,10 @@ const AppList = _ref => {
|
|
|
11440
11446
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11441
11447
|
className: "neeto-ui-w-full"
|
|
11442
11448
|
}, appRoles.map((_ref2, index) => {
|
|
11443
|
-
var _globalProps$
|
|
11449
|
+
var _globalProps$appName2;
|
|
11444
11450
|
let appName = _ref2.appName,
|
|
11445
11451
|
isEnabled = _ref2.isEnabled;
|
|
11446
|
-
const isCurrentApp = appName === ((_globalProps$
|
|
11452
|
+
const isCurrentApp = appName === ((_globalProps$appName2 = initializers.globalProps.appName) === null || _globalProps$appName2 === void 0 ? void 0 : _globalProps$appName2.substring(5));
|
|
11447
11453
|
const isAppRoleSelectionChecked = isCurrentApp || isEnabled && isAppListEnabled;
|
|
11448
11454
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11449
11455
|
className: "ntm-manage-members__app-roles",
|