@opengeoweb/layer-select 9.8.0 → 9.10.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/layer-select",
3
- "version": "9.8.0",
3
+ "version": "9.10.0",
4
4
  "description": "GeoWeb layer select library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -12,13 +12,13 @@
12
12
  "@opengeoweb/store": "*",
13
13
  "react-redux": "^8.1.3",
14
14
  "@opengeoweb/theme": "*",
15
- "@mui/material": "5.12.0",
15
+ "@mui/material": "~5.15.11",
16
16
  "@opengeoweb/webmap-react": "*",
17
17
  "@opengeoweb/webmap": "*",
18
18
  "react-window": "^1.8.10",
19
19
  "@opengeoweb/snackbar": "*",
20
20
  "@opengeoweb/form-fields": "*",
21
- "react-hook-form": "7.47.0",
21
+ "react-hook-form": "^7.50.1",
22
22
  "@reduxjs/toolkit": "^1.9.7",
23
23
  "@redux-eggs/core": "^2.2.0",
24
24
  "@redux-eggs/redux-toolkit": "^2.2.0",
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- export type ListItem = {
2
+ export interface ListItem {
3
3
  label: string;
4
4
  value: string;
5
5
  icon: React.ReactElement;
6
- };
6
+ }
7
7
  export interface LayerInfoListProps {
8
8
  label: string;
9
9
  list: ListItem[];
@@ -1,28 +1,28 @@
1
- import { PayloadAction } from '@reduxjs/toolkit';
1
+ import { PayloadAction, Draft } from '@reduxjs/toolkit';
2
2
  import { uiTypes } from '@opengeoweb/store';
3
3
  import { EnableOnlyOneKeywordPayload, LayerSelectRemoveServicePayload, LayerSelectStoreType, SetActiveLayerInfoPayload, SetSearchFilterPayload, ToggleKeywordsPayload, Filter, ActiveServiceObject, ToggleServicePopupPayload, ServicePopupObject } from './types';
4
4
  export declare const layerSelectFilterAdapter: import("@reduxjs/toolkit").EntityAdapter<Filter>;
5
5
  export declare const layerSelectActiveServicesAdapter: import("@reduxjs/toolkit").EntityAdapter<ActiveServiceObject>;
6
6
  export declare const initialServicePopupState: ServicePopupObject;
7
7
  export declare const initialState: LayerSelectStoreType;
8
- export declare const reducer: import("redux").Reducer<import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, import("redux").AnyAction>;
8
+ export declare const reducer: import("redux").Reducer<LayerSelectStoreType, import("redux").AnyAction>;
9
9
  export declare const layerSelectActions: import("@reduxjs/toolkit").CaseReducerActions<{
10
- setSearchFilter: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<SetSearchFilterPayload>) => void;
11
- closeServicePopupOpen: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>) => void;
12
- toggleServicePopup: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<ToggleServicePopupPayload>) => void;
13
- layerSelectRemoveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<LayerSelectRemoveServicePayload>) => void;
14
- enableActiveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<{
10
+ setSearchFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<SetSearchFilterPayload>) => void;
11
+ closeServicePopupOpen: (draft: Draft<LayerSelectStoreType>) => void;
12
+ toggleServicePopup: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<ToggleServicePopupPayload>) => void;
13
+ layerSelectRemoveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<LayerSelectRemoveServicePayload>) => void;
14
+ enableActiveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
15
15
  serviceId: string;
16
16
  }>) => void;
17
- enableAllActiveServices: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>) => void;
18
- onlyThisServiceEnabled: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<{
17
+ enableAllActiveServices: (draft: Draft<LayerSelectStoreType>) => void;
18
+ onlyThisServiceEnabled: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
19
19
  serviceId: string;
20
20
  }>) => void;
21
- disableActiveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<{
21
+ disableActiveService: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<{
22
22
  serviceId: string;
23
23
  }>) => void;
24
- toggleFilter: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<ToggleKeywordsPayload>) => void;
25
- enableOnlyOneFilter: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<EnableOnlyOneKeywordPayload>) => void;
26
- setActiveLayerInfo: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<SetActiveLayerInfoPayload>) => void;
24
+ toggleFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<ToggleKeywordsPayload>) => void;
25
+ enableOnlyOneFilter: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<EnableOnlyOneKeywordPayload>) => void;
26
+ setActiveLayerInfo: (draft: Draft<LayerSelectStoreType>, action: PayloadAction<SetActiveLayerInfoPayload>) => void;
27
27
  }, uiTypes.DialogTypes.LayerSelect>;
28
28
  export type LayerSelectActions = ReturnType<typeof layerSelectActions.setSearchFilter> | ReturnType<typeof layerSelectActions.layerSelectRemoveService> | ReturnType<typeof layerSelectActions.enableActiveService> | ReturnType<typeof layerSelectActions.disableActiveService> | ReturnType<typeof layerSelectActions.toggleFilter> | ReturnType<typeof layerSelectActions.enableOnlyOneFilter> | ReturnType<typeof layerSelectActions.setActiveLayerInfo>;
@@ -55,10 +55,10 @@ export declare const getCheckedFilterIds: ((state: LayerSelectModuleState) => st
55
55
  }> & {
56
56
  clearCache: () => void;
57
57
  };
58
- export type FiltersGrouped = {
58
+ export interface FiltersGrouped {
59
59
  groups: Filter[];
60
60
  keywords: Filter[];
61
- };
61
+ }
62
62
  export declare const getFilters: ((state: LayerSelectModuleState) => FiltersGrouped) & import("reselect").OutputSelectorFields<(args_0: import("./types").ActiveServiceObject[], args_1: Filter[]) => FiltersGrouped, {
63
63
  clearCache: () => void;
64
64
  }> & {
@@ -2,9 +2,7 @@ import { CoreAppStore, serviceTypes } from '@opengeoweb/store';
2
2
  import { EntityState } from '@reduxjs/toolkit';
3
3
  export type RootState = CoreAppStore & LayerSelectModuleState;
4
4
  export type NoIdService = Omit<LayerSelectService, 'id'>;
5
- export interface UserAddedServices {
6
- [url: string]: NoIdService;
7
- }
5
+ export type UserAddedServices = Record<string, NoIdService>;
8
6
  export interface LayerSelectService {
9
7
  name: string;
10
8
  url: string;