@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.
@@ -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) => Service[];
4
- export declare const isService: (param: unknown) => param is Service;
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,7 @@
1
+ import * as React from 'react';
2
+ export declare const SnackbarDemo: () => React.ReactElement;
3
+ export declare const TwoSnackbarsDemo: () => React.ReactElement;
4
+ declare const _default: {
5
+ title: string;
6
+ };
7
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { SnackbarProps } from '@mui/material';
3
+ export declare const SnackbarWrapperConnect: React.FC<SnackbarProps>;
@@ -1,4 +1,6 @@
1
1
  import * as React from 'react';
2
+ export declare const titleOn = "Auto update on";
3
+ export declare const titleOff = "Auto update off";
2
4
  interface AutoUpdateButtonProps {
3
5
  toggleAutoUpdate?: () => void;
4
6
  disabled?: boolean;
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ export declare const speedTooltipTitle = "Speed";
2
3
  interface SpeedButtonProps {
3
4
  animationDelay: number;
4
5
  setMapAnimationDelay: (delay: number) => void;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Dimension, MapActionOrigin } from '../../../../store/mapStore/types';
3
+ export declare const timeStepTitle = "Time step";
3
4
  interface TimeStepProps {
4
5
  timeStep: number;
5
6
  disabled?: boolean;
@@ -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;
@@ -2,3 +2,4 @@ export * from './mapStore';
2
2
  export * from './layerSelect';
3
3
  export * from './ui';
4
4
  export * from './generic';
5
+ export * from './snackbar';
@@ -0,0 +1,4 @@
1
+ import { ISagaModule } from 'redux-dynamic-modules-saga';
2
+ import { SnackbarModuleStore } from './types';
3
+ declare const snackbarModuleConfig: ISagaModule<SnackbarModuleStore>;
4
+ export default snackbarModuleConfig;
@@ -0,0 +1,2 @@
1
+ export { snackbarActions } from './reducer';
2
+ export * as snackbarSelectors from './selectors';
@@ -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,5 @@
1
+ import { SagaIterator } from 'redux-saga';
2
+ import { SnackbarActions } from './reducer';
3
+ export declare function openSnackbarSaga(capturedAction: SnackbarActions): SagaIterator;
4
+ export declare function rootSaga(): SagaIterator;
5
+ export default rootSaga;
@@ -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
- interface FilteredMapPresets {
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 filterBaseLayers: (presetArray: unknown[]) => Layer[];
22
- export declare const filterMapLayers: (presetArray: unknown[]) => Layer[];
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: (presets: InitialAppPreset) => FilteredMapPresets;
30
- export declare const getInitialPresets: (mapPreset: InitialAppPreset, defaultInitialPresets: InitialAppPreset) => InitialAppPresetProps;
28
+ export declare const filterMapPresets: (initialAppPreset: InitialAppPreset) => FilteredMapPresets;
29
+ export declare const getInitialAppPresets: (mapPreset: InitialAppPreset, defaultInitialPresets: InitialAppPreset) => InitialAppPresetProps;
31
30
  export {};
@@ -1,4 +1,5 @@
1
1
  import { Service } from '../components/WMSLoader/services';
2
+ export declare type NoIdService = Omit<Service, 'id'>;
2
3
  export interface UserAddedServices {
3
- [id: string]: Service;
4
+ [url: string]: NoIdService;
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "3.0.0",
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": "3.0.0",
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": "3.0.0",
23
+ "@opengeoweb/shared": "4.0.0",
24
24
  "react-draggable": "^4.4.3",
25
25
  "re-resizable": "^6.9.0",
26
- "@opengeoweb/form-fields": "3.0.0",
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": "3.0.0",
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",