@opengeoweb/core 3.0.0 → 4.0.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 +353 -239
- package/index.umd.js +353 -208
- package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +3 -3
- package/lib/components/Snackbar/SnackbarWrapper.d.ts +9 -0
- package/lib/components/Snackbar/SnackbarWrapper.spec.d.ts +1 -0
- package/lib/components/Snackbar/SnackbarWrapper.stories.d.ts +7 -0
- package/lib/components/Snackbar/SnackbarWrapperConnect.d.ts +3 -0
- package/lib/components/Snackbar/SnackbarWrapperConnect.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/AutoUpdateButton/AutoUpdateButton.d.ts +2 -0
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +1 -0
- package/lib/store/coreModuleConfig.d.ts +1 -1
- package/lib/store/index.d.ts +1 -0
- package/lib/store/snackbar/config.d.ts +4 -0
- package/lib/store/snackbar/index.d.ts +2 -0
- package/lib/store/snackbar/reducer.d.ts +11 -0
- package/lib/store/snackbar/reducer.spec.d.ts +1 -0
- package/lib/store/snackbar/sagas.d.ts +5 -0
- package/lib/store/snackbar/sagas.spec.d.ts +1 -0
- package/lib/store/snackbar/selectors.d.ts +10 -0
- package/lib/store/snackbar/selectors.spec.d.ts +1 -0
- package/lib/store/snackbar/types.d.ts +17 -0
- package/lib/utils/jsonPresetFilter.d.ts +11 -12
- package/lib/utils/types.d.ts +2 -1
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserAddedServices } from '../../../utils/types';
|
|
1
|
+
import { NoIdService, UserAddedServices } from '../../../utils/types';
|
|
2
2
|
import { Service } from '../../WMSLoader/services';
|
|
3
|
-
export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) =>
|
|
4
|
-
export declare const
|
|
3
|
+
export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) => NoIdService[];
|
|
4
|
+
export declare const isNoIdService: (param: unknown) => param is NoIdService;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SnackbarProps } from '@mui/material';
|
|
3
|
+
interface SnackBarWrapperProps extends SnackbarProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
id: string;
|
|
6
|
+
onCloseSnackbar: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SnackbarWrapper: React.FC<SnackBarWrapperProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const coreModuleConfig: (import("redux-dynamic-modules-saga").ISagaModule<import("./mapStore/types").WebMapStateModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./ui/types").UIModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./layerSelect/types").LayerSelectModuleState>)[];
|
|
1
|
+
declare const coreModuleConfig: (import("redux-dynamic-modules-saga").ISagaModule<import("./mapStore/types").WebMapStateModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./ui/types").UIModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./layerSelect/types").LayerSelectModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./snackbar/types").SnackbarModuleStore>)[];
|
|
2
2
|
export default coreModuleConfig;
|
package/lib/store/index.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { OpenSnackbarPayload, SnackbarItem, SnackbarState, TriggerOpenSnackbarBySagaPayload } from './types';
|
|
3
|
+
export declare const snackbarAdapter: import("@reduxjs/toolkit").EntityAdapter<SnackbarItem>;
|
|
4
|
+
export declare const initialState: SnackbarState;
|
|
5
|
+
export declare const reducer: import("@reduxjs/toolkit").Reducer<SnackbarState, import("@reduxjs/toolkit").AnyAction>;
|
|
6
|
+
export declare const snackbarActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
7
|
+
openSnackbar: (draft: import("immer/dist/internal").WritableDraft<SnackbarState>, action: PayloadAction<OpenSnackbarPayload>) => void;
|
|
8
|
+
triggerOpenSnackbarBySaga: (draft: import("immer/dist/internal").WritableDraft<SnackbarState>, action: PayloadAction<TriggerOpenSnackbarBySagaPayload>) => void;
|
|
9
|
+
closeSnackbar: (draft: import("immer/dist/internal").WritableDraft<SnackbarState>) => void;
|
|
10
|
+
}>;
|
|
11
|
+
export declare type SnackbarActions = ReturnType<typeof snackbarActions.openSnackbar> | ReturnType<typeof snackbarActions.triggerOpenSnackbarBySaga> | ReturnType<typeof snackbarActions.closeSnackbar>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SnackbarModuleStore, SnackbarState } from './types';
|
|
2
|
+
export declare const getSnackbarStore: (store: SnackbarModuleStore) => SnackbarState;
|
|
3
|
+
export declare const getCurrentSnackbarMessages: (state: SnackbarModuleStore) => import("./types").SnackbarItem[];
|
|
4
|
+
export declare const getFirstSnackbarMessage: ((state: {
|
|
5
|
+
snackbar?: SnackbarState;
|
|
6
|
+
}) => import("./types").SnackbarItem) & import("reselect").OutputSelectorFields<(args_0: import("./types").SnackbarItem[]) => import("./types").SnackbarItem & {
|
|
7
|
+
clearCache: () => void;
|
|
8
|
+
}> & {
|
|
9
|
+
clearCache: () => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EntityState } from '@reduxjs/toolkit';
|
|
2
|
+
export interface SnackbarMessage {
|
|
3
|
+
message: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SnackbarItem extends SnackbarMessage {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type SnackbarState = EntityState<SnackbarItem>;
|
|
9
|
+
export interface SnackbarModuleStore {
|
|
10
|
+
snackbar?: SnackbarState;
|
|
11
|
+
}
|
|
12
|
+
export interface OpenSnackbarPayload {
|
|
13
|
+
snackbarContent: SnackbarMessage;
|
|
14
|
+
}
|
|
15
|
+
export interface TriggerOpenSnackbarBySagaPayload {
|
|
16
|
+
snackbarContent: SnackbarItem;
|
|
17
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Service } from '../components/WMSLoader/services';
|
|
2
2
|
import { Layer } from '../store/mapStore/types';
|
|
3
|
-
|
|
3
|
+
declare type FilteredLayerList = {
|
|
4
|
+
mapLayers: Layer[];
|
|
5
|
+
baseLayers: Layer[];
|
|
6
|
+
overLayers?: Layer[];
|
|
7
|
+
};
|
|
8
|
+
interface FilteredMapPresets extends FilteredLayerList {
|
|
4
9
|
services?: Service[];
|
|
5
10
|
baseServices?: Service[];
|
|
6
|
-
baseLayers: Layer[];
|
|
7
|
-
mapLayers: Layer[];
|
|
8
11
|
}
|
|
9
12
|
export interface InitialAppPresetProps {
|
|
10
13
|
presetType?: string;
|
|
@@ -18,14 +21,10 @@ export interface InitialAppPresetProps {
|
|
|
18
21
|
export interface InitialAppPreset {
|
|
19
22
|
preset: InitialAppPresetProps;
|
|
20
23
|
}
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const filterLayers: (layers?: Layer[]) =>
|
|
24
|
-
mapLayers: Layer[];
|
|
25
|
-
baseLayers: Layer[];
|
|
26
|
-
overLayers: Layer[];
|
|
27
|
-
};
|
|
24
|
+
export declare const parseBoolean: (value: string | boolean) => boolean;
|
|
25
|
+
export declare const parseLayer: (layer: Layer) => Layer;
|
|
26
|
+
export declare const filterLayers: (layers?: Layer[], layerParser?: (layer: Layer) => Layer) => FilteredLayerList;
|
|
28
27
|
export declare const filterServices: (presetArray: Service[]) => Service[];
|
|
29
|
-
export declare const filterMapPresets: (
|
|
30
|
-
export declare const
|
|
28
|
+
export declare const filterMapPresets: (initialAppPreset: InitialAppPreset) => FilteredMapPresets;
|
|
29
|
+
export declare const getInitialAppPresets: (mapPreset: InitialAppPreset, defaultInitialPresets: InitialAppPreset) => InitialAppPresetProps;
|
|
31
30
|
export {};
|
package/lib/utils/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
|
-
"@opengeoweb/theme": "
|
|
16
|
+
"@opengeoweb/theme": "4.0.0",
|
|
17
17
|
"@mui/material": "^5.2.8",
|
|
18
|
-
"@mui/styles": "^5.2.3",
|
|
19
18
|
"moment": "^2.29.0",
|
|
20
19
|
"react-redux": "^8.0.2",
|
|
20
|
+
"@mui/styles": "^5.2.3",
|
|
21
21
|
"react-intl": "^5.17.5",
|
|
22
22
|
"lodash": "^4.17.20",
|
|
23
|
-
"@opengeoweb/shared": "
|
|
23
|
+
"@opengeoweb/shared": "4.0.0",
|
|
24
24
|
"react-draggable": "^4.4.3",
|
|
25
25
|
"re-resizable": "^6.9.0",
|
|
26
|
-
"@opengeoweb/form-fields": "
|
|
26
|
+
"@opengeoweb/form-fields": "4.0.0",
|
|
27
27
|
"react-hook-form": "^6.12.1",
|
|
28
28
|
"moment-timezone": "^0.5.31",
|
|
29
29
|
"@mui/lab": "^5.0.0-alpha.64",
|
|
30
30
|
"axios": "^0.25.0",
|
|
31
|
-
"@opengeoweb/webmap": "
|
|
31
|
+
"@opengeoweb/webmap": "4.0.0",
|
|
32
32
|
"throttle-debounce": "^3.0.1",
|
|
33
33
|
"proj4": "^2.6.2",
|
|
34
34
|
"react-sortablejs": "^6.0.0",
|