@opengeoweb/data-explorer 14.1.0 → 14.2.2

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.esm.js CHANGED
@@ -4633,7 +4633,7 @@ const useGetDataexplorerConfiguration = productConfigKey => {
4633
4633
  queryFn: () => getDataExplorerConfiguration(productConfigKey)
4634
4634
  });
4635
4635
  };
4636
- const useFetchItems = (baseUrl, search, queryables, concepts, bbox) => {
4636
+ const useFetchItems = (baseUrl, search, queryables, concepts, bbox, enabled = true) => {
4637
4637
  const queryableKey = useMemo(() => {
4638
4638
  return queryables == null ? void 0 : queryables.filter(queryable => queryable.selected.length > 0).map(queryable => `${queryable.id} : ${[...queryable.selected].sort().join(',')}`).sort();
4639
4639
  }, [queryables]);
@@ -4642,7 +4642,8 @@ const useFetchItems = (baseUrl, search, queryables, concepts, bbox) => {
4642
4642
  }, [concepts]);
4643
4643
  return useQuery({
4644
4644
  queryKey: ['fetchItems', baseUrl, search, queryableKey, conceptKey, bbox],
4645
- queryFn: () => fetchItems(baseUrl, search, queryables, concepts, bbox)
4645
+ queryFn: () => fetchItems(baseUrl, search, queryables, concepts, bbox),
4646
+ enabled
4646
4647
  });
4647
4648
  };
4648
4649
  const useFetchGeoJSON = collectionUrl => {
@@ -9869,7 +9870,7 @@ const DataExplorerConnect = ({
9869
9870
  const {
9870
9871
  isFetching: loading,
9871
9872
  error
9872
- } = useFetchItems(baseUrl, searchFilter, queryables, concepts, bbox);
9873
+ } = useFetchItems(baseUrl, searchFilter, queryables, concepts, bbox, isDialogOpen);
9873
9874
  React.useEffect(() => {
9874
9875
  if (dataexplorerPresets) {
9875
9876
  dispatch(dataExplorerActions.setDataExplorerConfiguration(dataexplorerPresets));
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@opengeoweb/data-explorer",
3
- "version": "14.1.0",
3
+ "version": "14.2.2",
4
4
  "dependencies": {
5
5
  "@mui/material": "^7.0.1",
6
- "@opengeoweb/api": "14.1.0",
7
- "@opengeoweb/core": "14.1.0",
8
- "@opengeoweb/shared": "14.1.0",
9
- "@opengeoweb/snackbar": "14.1.0",
10
- "@opengeoweb/store": "14.1.0",
11
- "@opengeoweb/theme": "14.1.0",
12
- "@opengeoweb/webmap": "14.1.0",
13
- "@opengeoweb/webmap-react": "14.1.0",
6
+ "@opengeoweb/api": "14.2.2",
7
+ "@opengeoweb/core": "14.2.2",
8
+ "@opengeoweb/shared": "14.2.2",
9
+ "@opengeoweb/snackbar": "14.2.2",
10
+ "@opengeoweb/store": "14.2.2",
11
+ "@opengeoweb/theme": "14.2.2",
12
+ "@opengeoweb/webmap": "14.2.2",
13
+ "@opengeoweb/webmap-react": "14.2.2",
14
14
  "@reduxjs/toolkit": "^2.6.1",
15
15
  "@tanstack/query-core": "^5.69.2",
16
16
  "@tanstack/react-query": "^5.85.5",
@@ -2,6 +2,6 @@ import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { FeatureCollection } from 'geojson';
3
3
  import { Concept, DataExplorerPresets, DiscoveryMetadataFeature, DiscoveryMetadataItems, Queryable } from '../../store/types';
4
4
  export declare const useGetDataexplorerConfiguration: (productConfigKey: string) => UseQueryResult<DataExplorerPresets>;
5
- export declare const useFetchItems: (baseUrl: string, search?: string, queryables?: Queryable[], concepts?: Concept[], bbox?: number[]) => UseQueryResult<DiscoveryMetadataItems | null>;
5
+ export declare const useFetchItems: (baseUrl: string, search?: string, queryables?: Queryable[], concepts?: Concept[], bbox?: number[], enabled?: boolean) => UseQueryResult<DiscoveryMetadataItems | null>;
6
6
  export declare const useFetchGeoJSON: (collectionUrl: string) => UseQueryResult<FeatureCollection | null>;
7
7
  export declare const useFetchItem: (baseUrl: string, datasetId: string) => UseQueryResult<DiscoveryMetadataFeature | null>;