@bigbinary/neeto-team-members-frontend 2.4.7 → 2.4.8

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 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-icons@1.8.40 @bigbinary/neetoui@4.0.17 axios@1.1.3 classnames@2.3.2 formik@2.2.9 ramda@0.28.0 react-router-dom@5.3.3 react-toastify@9.0.8 yup@0.32.11
15
+ yarn add @bigbinary/neeto-icons@1.8.40 @bigbinary/neetoui@4.1.1 axios@1.1.3 classnames@2.3.2 formik@2.2.9 ramda@0.28.0 react-router-dom@5.3.3 react-toastify@8.2.0 yup@0.32.11
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.4.7
21
+ yarn add @bigbinary/neeto-team-members-frontend@2.4.8
22
22
  ```
23
23
 
24
24
  ## Usage
@@ -106,6 +106,6 @@ You can checkout the `publish` workflow in GitHub Actions to get a live update.
106
106
  | neetoWheel | :white_check_mark: | :white_check_mark: |
107
107
  | neetoWireframe | :white_check_mark: | :white_check_mark: |
108
108
  | neetoAuth | :x: | :x: |
109
- | neetoChat | :x: | :x: |
109
+ | neetoChat | :x: | :white_check_mark: |
110
110
  | neetoDesk | :x: | :white_check_mark: |
111
111
  | neetoInvoice | :x: | :white_check_mark: |
package/dist/index.cjs.js CHANGED
@@ -4249,6 +4249,7 @@ const slugify = string => string.toString().toLowerCase().replace(/\s+/g, "-") /
4249
4249
 
4250
4250
  const capitalize = string => string.charAt(0).toUpperCase() + string.slice(1);
4251
4251
  const isNotEmpty$1 = ramda.complement(ramda.isEmpty);
4252
+ const isNotEqual = (a, b) => !Object.is(a, b);
4252
4253
 
4253
4254
  const SINGULAR = {
4254
4255
  count: 1
@@ -10961,6 +10962,7 @@ const getMetaName = ramda.curry((metaName, count) => {
10961
10962
  const translationWord = `metaNames.${singularizedMetaName}`;
10962
10963
  return instance.exists(translationWord, count) ? instance.t(translationWord, count) : pluralize(capitalize(singularizedMetaName), count.count);
10963
10964
  });
10965
+ const clearSelectedMembers = (previousCategory, currentCategory) => isNotEqual(previousCategory, currentCategory) && isNotEqual(currentCategory, "ALL");
10964
10966
 
10965
10967
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10966
10968
  function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -11016,7 +11018,7 @@ const MultipleEmailInput = _ref => {
11016
11018
  name: "emails",
11017
11019
  size: "medium",
11018
11020
  value: (_head = ramda.head(emails)) === null || _head === void 0 ? void 0 : _head.value
11019
- }) : /*#__PURE__*/React__default["default"].createElement(formik$1.EmailInput, {
11021
+ }) : /*#__PURE__*/React__default["default"].createElement(formik$1.MultiEmailInput, {
11020
11022
  counter: COUNTER_PROPS,
11021
11023
  "data-cy": "ntm-manage-member-email-input",
11022
11024
  filterInvalidEmails: FILTER_INVALID_EMAILS,
@@ -11306,6 +11308,7 @@ const TeamMembers = _ref => {
11306
11308
  };
11307
11309
  const handleMemberFilterChange = filter => {
11308
11310
  setFilters(ramda.assoc("category", filter));
11311
+ clearSelectedMembers(filters.category, filter) && setSelectedRows(DEFAULT_SELECTED_ROWS);
11309
11312
  handlePageChange(setFilters, filter)(DEFAULT_PAGE_NUMBER, filters.results);
11310
11313
  };
11311
11314
  const handleTableChange = (_, __, sorter) => {