@opengeoweb/store 10.0.0 → 10.2.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/index.esm.js +4045 -4137
- package/package.json +1 -3
- package/src/store/coreModuleConfig.d.ts +7 -3
- package/src/store/drawingTool/config.d.ts +7 -0
- package/src/store/{drawingtool → drawingTool}/index.d.ts +1 -1
- package/src/store/{drawingtool → drawingTool}/listener.d.ts +1 -1
- package/src/store/{drawingtool → drawingTool}/reducer.d.ts +1 -2
- package/src/store/generic/config.d.ts +7 -5
- package/src/store/generic/loadingIndicator/types.d.ts +1 -1
- package/src/store/generic/synchronizationGroups/types.d.ts +2 -2
- package/src/store/generic/synchronizationGroups/utils.d.ts +1 -1
- package/src/store/generic/types.d.ts +2 -2
- package/src/store/index.d.ts +8 -10
- package/src/store/map/config.d.ts +8 -0
- package/src/store/map/index.d.ts +6 -0
- package/src/store/{mapStore/layers → map/layer}/selectors.d.ts +12 -0
- package/src/store/{mapStore → map}/map/filterLayers.d.ts +1 -1
- package/src/store/{mapStore → map}/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +1 -1
- package/src/store/{mapStore → map}/map/selectors.d.ts +49 -49
- package/src/store/{mapStore → map}/map/types.d.ts +3 -0
- package/src/store/{mapStore → map}/map/utils.d.ts +1 -1
- package/src/store/{mapStore → map}/service/reducer.d.ts +1 -1
- package/src/store/{mapStore → map}/service/selectors.d.ts +4 -4
- package/src/store/{mapStore → map}/storeTestUtils.d.ts +1 -1
- package/src/store/{mapStore → map}/types.d.ts +2 -2
- package/src/store/router/config.d.ts +6 -5
- package/src/store/types.d.ts +2 -2
- package/src/store/ui/config.d.ts +5 -5
- package/src/store/utils/testUtils.d.ts +3 -0
- package/src/store/drawingtool/config.d.ts +0 -6
- package/src/store/mapStore/config.d.ts +0 -6
- package/src/store/mapStore/index.d.ts +0 -97
- package/src/store/mapStore/map/mapUiListener.d.ts +0 -2
- package/src/store/mapStore/map/mapUiListener.spec.d.ts +0 -1
- package/src/store/testUtils/Providers.d.ts +0 -13
- /package/src/store/{drawingtool → drawingTool}/listener.spec.d.ts +0 -0
- /package/src/store/{drawingtool → drawingTool}/reducer.spec.d.ts +0 -0
- /package/src/store/{drawingtool → drawingTool}/selectors.d.ts +0 -0
- /package/src/store/{drawingtool → drawingTool}/selectors.spec.d.ts +0 -0
- /package/src/store/{drawingtool → drawingTool}/testUtils.d.ts +0 -0
- /package/src/store/{drawingtool → drawingTool}/utils.d.ts +0 -0
- /package/src/store/{drawingtool → drawingTool}/utils.spec.d.ts +0 -0
- /package/src/store/{mapStore/layers → map/layer}/index.d.ts +0 -0
- /package/src/store/{mapStore/layers → map/layer}/listeners.d.ts +0 -0
- /package/src/store/{mapStore/layers → map/layer}/listeners.spec.d.ts +0 -0
- /package/src/store/{mapStore/layers → map/layer}/reducer.d.ts +0 -0
- /package/src/store/{mapStore/layers → map/layer}/reducer.spec.d.ts +0 -0
- /package/src/store/{mapStore/layers → map/layer}/selectors.spec.d.ts +0 -0
- /package/src/store/{mapStore/layers → map/layer}/types.d.ts +0 -0
- /package/src/store/{mapStore/layers → map/layer}/utils.d.ts +0 -0
- /package/src/store/{mapStore/layers → map/layer}/utils.spec.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/actions.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/constants.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/enums.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/filterLayers.spec.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/index.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/listener.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/listener.spec.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/mapListenerAnimationUtils.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/mapListenerAnimationUtils.spec.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/metronomeListener.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/reducer.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/reducer.spec.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.spec.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/selectors.spec.d.ts +0 -0
- /package/src/store/{mapStore → map}/map/utils.spec.d.ts +0 -0
- /package/src/store/{mapStore → map}/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +0 -0
- /package/src/store/{mapStore → map}/service/index.d.ts +0 -0
- /package/src/store/{mapStore → map}/service/listener.d.ts +0 -0
- /package/src/store/{mapStore → map}/service/listener.spec.d.ts +0 -0
- /package/src/store/{mapStore → map}/service/localStorage.d.ts +0 -0
- /package/src/store/{mapStore → map}/service/localStorage.spec.d.ts +0 -0
- /package/src/store/{mapStore → map}/service/reducer.spec.d.ts +0 -0
- /package/src/store/{mapStore → map}/service/selectors.spec.d.ts +0 -0
- /package/src/store/{mapStore → map}/service/types.d.ts +0 -0
- /package/src/store/{mapStore → map}/storeTestSettings.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -11,11 +11,9 @@
|
|
|
11
11
|
"@opengeoweb/shared": "*",
|
|
12
12
|
"react-redux": "^8.1.3",
|
|
13
13
|
"@reduxjs/toolkit": "^1.9.7",
|
|
14
|
-
"@redux-eggs/core": "^2.2.0",
|
|
15
14
|
"@opengeoweb/webmap-react": "*",
|
|
16
15
|
"@opengeoweb/webmap": "*",
|
|
17
16
|
"immer": "^10.0.3",
|
|
18
|
-
"@redux-eggs/redux-toolkit": "^2.2.0",
|
|
19
17
|
"lodash": "^4.17.21",
|
|
20
18
|
"@opengeoweb/metronome": "*",
|
|
21
19
|
"@opengeoweb/timeslider": "*",
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const coreModuleConfig: ({
|
|
3
|
+
reducersMap: ReducersMapObject<Required<import("./map").WebMapStateModuleState>, import("redux").Action<any>>;
|
|
4
|
+
middlewares: ListenerMiddleware[];
|
|
5
|
+
} | {
|
|
6
|
+
reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
|
|
7
|
+
})[];
|
|
8
|
+
export declare const coreModuleReducersMap: ReducersMapObject;
|
|
5
9
|
export declare const coreModuleMiddlewares: ListenerMiddleware[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
|
|
2
|
+
export declare const drawtoolReducersMap: ReducersMapObject;
|
|
3
|
+
export declare const drawtoolMiddlewares: ListenerMiddleware[];
|
|
4
|
+
export declare const drawtoolModuleConfig: {
|
|
5
|
+
reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
|
|
6
|
+
middlewares: ListenerMiddleware[];
|
|
7
|
+
};
|
|
@@ -2,4 +2,4 @@ export * as drawtoolSelectors from './selectors';
|
|
|
2
2
|
export * from './config';
|
|
3
3
|
export type { DrawToolItem, DrawtoolModuleStore } from './reducer';
|
|
4
4
|
export * from './utils';
|
|
5
|
-
export {
|
|
5
|
+
export { drawingToolActions, drawingToolReducer } from './reducer';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DrawtoolModuleStore } from './reducer';
|
|
2
|
-
import { WebMapStateModuleState } from '../
|
|
2
|
+
import { WebMapStateModuleState } from '../map';
|
|
3
3
|
export declare const drawingToolListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<DrawtoolModuleStore & WebMapStateModuleState, import("@reduxjs/toolkit").ThunkDispatch<DrawtoolModuleStore & WebMapStateModuleState, unknown, import("redux").AnyAction>, unknown>;
|
|
@@ -15,8 +15,7 @@ export interface DrawtoolModuleStore {
|
|
|
15
15
|
}
|
|
16
16
|
export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawToolItem>;
|
|
17
17
|
export declare const initialState: DrawingToolState;
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const drawtoolActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
18
|
+
export declare const drawingToolReducer: import("redux").Reducer<DrawingToolState>, drawingToolActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
20
19
|
registerDrawTool: (draft: Draft<DrawingToolState>, action: PayloadAction<MapDrawToolOptions & {
|
|
21
20
|
drawToolId: string;
|
|
22
21
|
mapId?: string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { SynchronizationGroupModuleState } from './synchronizationGroups/types';
|
|
4
|
-
export declare const synchronizationGroupReducersMap: ReducersMapObject<SynchronizationGroupModuleState>;
|
|
1
|
+
import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
|
|
2
|
+
export declare const synchronizationGroupReducersMap: ReducersMapObject;
|
|
5
3
|
export declare const synchronizationGroupMiddlewares: ListenerMiddleware[];
|
|
6
|
-
declare const synchronizationGroupConfig:
|
|
4
|
+
declare const synchronizationGroupConfig: {
|
|
5
|
+
id: string;
|
|
6
|
+
reducersMap: ReducersMapObject<any, import("redux").Action<any>>;
|
|
7
|
+
middlewares: ListenerMiddleware[];
|
|
8
|
+
};
|
|
7
9
|
export default synchronizationGroupConfig;
|
|
@@ -6,7 +6,7 @@ export interface LoadingIndicatorType {
|
|
|
6
6
|
isEDRLoading: boolean;
|
|
7
7
|
}
|
|
8
8
|
export interface LoadingIndicatorModuleState {
|
|
9
|
-
|
|
9
|
+
loadingIndicator?: EntityState<LoadingIndicatorType>;
|
|
10
10
|
}
|
|
11
11
|
export interface SetIsGetMapLoadingPayload {
|
|
12
12
|
id: string;
|
|
@@ -69,8 +69,8 @@ export interface SynchronizationGroupState {
|
|
|
69
69
|
isTimeScrollingEnabled: boolean;
|
|
70
70
|
}
|
|
71
71
|
export interface SynchronizationGroupModuleState {
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
syncGroups?: SynchronizationGroupState;
|
|
73
|
+
loadingIndicator?: LoadingIndicatorModuleState['loadingIndicator'];
|
|
74
74
|
}
|
|
75
75
|
export type SyncType = typeof SYNCGROUPS_TYPE_SETBBOX | typeof SYNCGROUPS_TYPE_SETTIME | typeof SYNCGROUPS_TYPE_SETLAYERACTIONS;
|
|
76
76
|
export interface SyncGroupsAddSourcePayload {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CoreAppStore } from '../../types';
|
|
2
|
-
import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload } from '../../
|
|
2
|
+
import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload } from '../../map/types';
|
|
3
3
|
import { SyncLayerPayloads, LayerActionPayloadsWithLayerIds } from '../types';
|
|
4
4
|
import { SyncType } from './types';
|
|
5
5
|
interface FoundTargets {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SetLayerStylePayload } from '@opengeoweb/webmap-react';
|
|
2
|
-
import { MapActionOrigin } from '../
|
|
3
|
-
import type { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload } from '../
|
|
2
|
+
import { MapActionOrigin } from '../map/map/enums';
|
|
3
|
+
import type { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload } from '../map/types';
|
|
4
4
|
export interface SetTimePayload {
|
|
5
5
|
sourceId: string;
|
|
6
6
|
origin: string;
|
package/src/store/index.d.ts
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './map';
|
|
2
2
|
export * from './ui';
|
|
3
3
|
export * from './generic';
|
|
4
4
|
export { genericListener } from './generic/listener';
|
|
5
|
-
export { mapListener } from './
|
|
6
|
-
export { serviceListener } from './
|
|
5
|
+
export { mapListener } from './map/map/listener';
|
|
6
|
+
export { serviceListener } from './map/service/listener';
|
|
7
7
|
export { routerListener } from './router/listener';
|
|
8
|
-
export { drawingToolListener } from './
|
|
9
|
-
export { layersListener } from './
|
|
10
|
-
export {
|
|
11
|
-
export { metronomeListener } from './mapStore/map/metronomeListener';
|
|
8
|
+
export { drawingToolListener } from './drawingTool/listener';
|
|
9
|
+
export { layersListener } from './map/layer/listeners';
|
|
10
|
+
export { metronomeListener } from './map/map/metronomeListener';
|
|
12
11
|
export * from './router';
|
|
13
|
-
export * from './
|
|
12
|
+
export * from './drawingTool';
|
|
14
13
|
export * from './types';
|
|
15
|
-
export * as storeTestUtils from './
|
|
14
|
+
export * as storeTestUtils from './map/storeTestUtils';
|
|
16
15
|
export * from './coreModuleConfig';
|
|
17
16
|
export * from './generic/linking';
|
|
18
17
|
export * as storeUtils from './utils';
|
|
19
18
|
export * from './utils';
|
|
20
19
|
export { uiModuleConfig } from './ui/config';
|
|
21
|
-
export * from './testUtils/Providers';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ListenerMiddleware, ReducersMapObject } from '@reduxjs/toolkit';
|
|
2
|
+
import { WebMapStateModuleState } from './types';
|
|
3
|
+
export declare const mapStoreReducers: ReducersMapObject<Required<WebMapStateModuleState>>;
|
|
4
|
+
export declare const mapStoreMiddlewares: ListenerMiddleware[];
|
|
5
|
+
export declare const mapStoreModuleConfig: {
|
|
6
|
+
reducersMap: ReducersMapObject<Required<WebMapStateModuleState>, import("redux").Action<any>>;
|
|
7
|
+
middlewares: ListenerMiddleware[];
|
|
8
|
+
};
|
|
@@ -14,6 +14,18 @@ export declare const getLayerById: ((state: any, layerId: any) => ReduxLayer | u
|
|
|
14
14
|
}> & {
|
|
15
15
|
clearCache: () => void;
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Determines if layer is present
|
|
19
|
+
*
|
|
20
|
+
* @param {object} store store: object - store object
|
|
21
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
22
|
+
* @returns {boolean} returnType:boolean - true if layer is present
|
|
23
|
+
*/
|
|
24
|
+
export declare const getIsLayerPresent: ((state: any, layerId: any) => boolean) & import("reselect").OutputSelectorFields<(args_0: ReduxLayer | undefined) => boolean, {
|
|
25
|
+
clearCache: () => void;
|
|
26
|
+
}> & {
|
|
27
|
+
clearCache: () => void;
|
|
28
|
+
};
|
|
17
29
|
/**
|
|
18
30
|
* Gets a layer from the layers part of the store by its Id, but without the time dimension. (All other dimensions are still included)
|
|
19
31
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { layerTypes } from '../
|
|
1
|
+
import { layerTypes } from '../layer';
|
|
2
2
|
export declare const filterLayers: (layers?: layerTypes.Layer[], layerParser?: (layer: layerTypes.Layer) => layerTypes.Layer) => FilteredLayerList;
|
|
3
3
|
export declare const createEmtpyFilteredList: (existingList: []) => FilteredLayerList;
|
|
4
4
|
export interface FilteredLayerList {
|