@trackunit/filters-asset-filter-definitions 1.3.4 → 1.3.6
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 +2 -1
- package/index.esm.js +2 -1
- package/package.json +16 -16
package/index.cjs.js
CHANGED
|
@@ -2778,6 +2778,7 @@ const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, l
|
|
|
2778
2778
|
const filterValue = filterDefinition?.filterKey ? String(filterState.values[filterDefinition.filterKey]) : undefined;
|
|
2779
2779
|
const [searchString, setSearchString] = react.useState(filterValue ?? "");
|
|
2780
2780
|
const previousFilterValue = reactCoreHooks.usePrevious(filterValue);
|
|
2781
|
+
const { clientSideUserId } = reactCoreHooks.useCurrentUser();
|
|
2781
2782
|
reactComponents.useDebounce(searchString, 500, "both", debouncedSearchString => {
|
|
2782
2783
|
if (filterValue === debouncedSearchString) {
|
|
2783
2784
|
return;
|
|
@@ -2793,7 +2794,7 @@ const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, l
|
|
|
2793
2794
|
}, [filterValue, previousFilterValue, searchString]);
|
|
2794
2795
|
const [recentSearches, setRecentSearches] = reactCoreHooks.useLocalStorage({
|
|
2795
2796
|
defaultState: [],
|
|
2796
|
-
key: `${localStorageKey}-${filterDefinition?.filterKey}-free-text-filter-recent-searches`,
|
|
2797
|
+
key: `${localStorageKey}-${filterDefinition?.filterKey}-free-text-filter-recent-searches-${clientSideUserId}`,
|
|
2797
2798
|
schema: zod.z.array(zod.z.string()),
|
|
2798
2799
|
});
|
|
2799
2800
|
const apply = react.useCallback(({ value, wasPreviousSearch = false, setRecent = true }) => {
|
package/index.esm.js
CHANGED
|
@@ -2776,6 +2776,7 @@ const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, l
|
|
|
2776
2776
|
const filterValue = filterDefinition?.filterKey ? String(filterState.values[filterDefinition.filterKey]) : undefined;
|
|
2777
2777
|
const [searchString, setSearchString] = useState(filterValue ?? "");
|
|
2778
2778
|
const previousFilterValue = usePrevious(filterValue);
|
|
2779
|
+
const { clientSideUserId } = useCurrentUser();
|
|
2779
2780
|
useDebounce(searchString, 500, "both", debouncedSearchString => {
|
|
2780
2781
|
if (filterValue === debouncedSearchString) {
|
|
2781
2782
|
return;
|
|
@@ -2791,7 +2792,7 @@ const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, l
|
|
|
2791
2792
|
}, [filterValue, previousFilterValue, searchString]);
|
|
2792
2793
|
const [recentSearches, setRecentSearches] = useLocalStorage({
|
|
2793
2794
|
defaultState: [],
|
|
2794
|
-
key: `${localStorageKey}-${filterDefinition?.filterKey}-free-text-filter-recent-searches`,
|
|
2795
|
+
key: `${localStorageKey}-${filterDefinition?.filterKey}-free-text-filter-recent-searches-${clientSideUserId}`,
|
|
2795
2796
|
schema: z.array(z.string()),
|
|
2796
2797
|
});
|
|
2797
2798
|
const apply = useCallback(({ value, wasPreviousSearch = false, setRecent = true }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/filters-asset-filter-definitions",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
"@tanstack/react-router": "1.47.1",
|
|
18
18
|
"string-ts": "^2.0.0",
|
|
19
19
|
"tailwind-merge": "^2.0.0",
|
|
20
|
-
"@trackunit/iris-app-build-utilities": "1.3.
|
|
21
|
-
"@trackunit/filters-filter-bar": "1.3.
|
|
22
|
-
"@trackunit/react-core-hooks": "1.3.
|
|
23
|
-
"@trackunit/react-filter-components": "1.3.
|
|
24
|
-
"@trackunit/react-form-components": "1.3.
|
|
25
|
-
"@trackunit/filters-graphql-hook": "1.3.
|
|
26
|
-
"@trackunit/utilization-indicator": "1.3.
|
|
27
|
-
"@trackunit/geo-json-utils": "1.3.
|
|
28
|
-
"@trackunit/react-components": "1.4.
|
|
29
|
-
"@trackunit/shared-utils": "1.5.
|
|
30
|
-
"@trackunit/translations-machine-type": "1.3.
|
|
31
|
-
"@trackunit/criticality-indicator": "1.3.
|
|
32
|
-
"@trackunit/iris-app-api": "1.3.
|
|
33
|
-
"@trackunit/react-core-contexts-test": "1.3.
|
|
34
|
-
"@trackunit/i18n-library-translation": "1.3.
|
|
20
|
+
"@trackunit/iris-app-build-utilities": "1.3.5",
|
|
21
|
+
"@trackunit/filters-filter-bar": "1.3.6",
|
|
22
|
+
"@trackunit/react-core-hooks": "1.3.5",
|
|
23
|
+
"@trackunit/react-filter-components": "1.3.5",
|
|
24
|
+
"@trackunit/react-form-components": "1.3.5",
|
|
25
|
+
"@trackunit/filters-graphql-hook": "1.3.6",
|
|
26
|
+
"@trackunit/utilization-indicator": "1.3.5",
|
|
27
|
+
"@trackunit/geo-json-utils": "1.3.5",
|
|
28
|
+
"@trackunit/react-components": "1.4.5",
|
|
29
|
+
"@trackunit/shared-utils": "1.5.5",
|
|
30
|
+
"@trackunit/translations-machine-type": "1.3.5",
|
|
31
|
+
"@trackunit/criticality-indicator": "1.3.5",
|
|
32
|
+
"@trackunit/iris-app-api": "1.3.5",
|
|
33
|
+
"@trackunit/react-core-contexts-test": "1.3.5",
|
|
34
|
+
"@trackunit/i18n-library-translation": "1.3.5"
|
|
35
35
|
},
|
|
36
36
|
"module": "./index.esm.js",
|
|
37
37
|
"main": "./index.cjs.js",
|