@trackunit/filters-graphql-hook 1.0.25 → 1.0.27

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/index.cjs.js CHANGED
@@ -114,9 +114,7 @@ const fixType = (values, outputTypeRecord) => {
114
114
  /**
115
115
  * Check if value is not empty
116
116
  */
117
- const valuesIfNotEmpty = (
118
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
119
- value) => {
117
+ const valuesIfNotEmpty = (value) => {
120
118
  if (Array.isArray(value)) {
121
119
  return value.length > 0 ? value : undefined;
122
120
  }
@@ -288,7 +286,6 @@ const CustomFieldPrefix$1 = "cf__";
288
286
  * @param filters Custom field filters
289
287
  * @returns {CustomFieldFilter[]} Custom field filters in a format that can be used by the GraphQL API
290
288
  */
291
- // eslint-disable-next-line @typescript-eslint/no-restricted-types
292
289
  const useCustomFieldFilters = (filters) => {
293
290
  return react.useMemo(() => {
294
291
  const result = [];
package/index.esm.js CHANGED
@@ -112,9 +112,7 @@ const fixType = (values, outputTypeRecord) => {
112
112
  /**
113
113
  * Check if value is not empty
114
114
  */
115
- const valuesIfNotEmpty = (
116
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
117
- value) => {
115
+ const valuesIfNotEmpty = (value) => {
118
116
  if (Array.isArray(value)) {
119
117
  return value.length > 0 ? value : undefined;
120
118
  }
@@ -286,7 +284,6 @@ const CustomFieldPrefix$1 = "cf__";
286
284
  * @param filters Custom field filters
287
285
  * @returns {CustomFieldFilter[]} Custom field filters in a format that can be used by the GraphQL API
288
286
  */
289
- // eslint-disable-next-line @typescript-eslint/no-restricted-types
290
287
  const useCustomFieldFilters = (filters) => {
291
288
  return useMemo(() => {
292
289
  const result = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-graphql-hook",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -13,14 +13,14 @@
13
13
  "graphql": "^16.9.0",
14
14
  "@apollo/client": "3.10.4",
15
15
  "zod": "3.22.4",
16
- "@trackunit/iris-app-build-utilities": "^1.0.8",
17
- "@trackunit/filters-filter-bar": "^1.0.25",
18
- "@trackunit/shared-utils": "^1.1.1",
19
- "@trackunit/iris-app-api": "^1.0.6",
20
- "@trackunit/react-core-contexts-test": "^1.0.7",
21
- "@trackunit/i18n-library-translation": "^1.0.11",
22
- "@trackunit/react-core-contexts-api": "^1.0.7",
23
- "@trackunit/react-core-hooks": "^1.0.7"
16
+ "@trackunit/iris-app-build-utilities": "1.0.10",
17
+ "@trackunit/filters-filter-bar": "1.0.27",
18
+ "@trackunit/shared-utils": "1.2.1",
19
+ "@trackunit/iris-app-api": "1.0.8",
20
+ "@trackunit/react-core-contexts-test": "1.0.9",
21
+ "@trackunit/i18n-library-translation": "1.0.13",
22
+ "@trackunit/react-core-contexts-api": "1.0.9",
23
+ "@trackunit/react-core-hooks": "1.0.9"
24
24
  },
25
25
  "module": "./index.esm.js",
26
26
  "main": "./index.cjs.js",