@opengeoweb/store 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/store",
3
- "version": "9.8.0",
3
+ "version": "9.10.0",
4
4
  "description": "GeoWeb Store library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,12 +15,10 @@
15
15
  "@opengeoweb/webmap-react": "*",
16
16
  "redux-saga": "^1.2.3",
17
17
  "@opengeoweb/webmap": "*",
18
- "immer": "^9.0.21",
18
+ "immer": "^10.0.3",
19
19
  "@redux-eggs/redux-toolkit": "^2.2.0",
20
20
  "@redux-eggs/saga-extension": "^2.2.0",
21
- "date-fns": "^3.3.0",
22
- "lodash": "^4.17.21",
23
- "@opengeoweb/theme": "*"
21
+ "lodash": "^4.17.21"
24
22
  },
25
23
  "peerDependencies": {
26
24
  "react": "18"
@@ -1,22 +1,4 @@
1
- import { DRAWMODE } from '@opengeoweb/webmap-react';
2
- export declare const testDefaultPoint: {
3
- drawModeId: string;
4
- value: DRAWMODE;
5
- title: string;
6
- shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
7
- isSelectable: boolean;
8
- };
9
- export declare const testDefaultPolygon: {
10
- drawModeId: string;
11
- value: DRAWMODE;
12
- title: string;
13
- shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
14
- isSelectable: boolean;
15
- };
16
- export declare const testDefaultDelete: {
17
- drawModeId: string;
18
- value: "DELETE";
19
- title: string;
20
- shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
21
- isSelectable: boolean;
22
- };
1
+ import { DrawMode } from '@opengeoweb/webmap-react';
2
+ export declare const testDefaultPoint: DrawMode;
3
+ export declare const testDefaultPolygon: DrawMode;
4
+ export declare const testDefaultDelete: DrawMode;
@@ -36,3 +36,8 @@ export declare const getShouldAllowMultipleShapes: ((state: DrawtoolModuleStore,
36
36
  }> & {
37
37
  clearCache: () => void;
38
38
  };
39
+ export declare const getActiveDrawMode: ((state: DrawtoolModuleStore, id: import("@reduxjs/toolkit").EntityId) => import("dist/libs/webmap-react/src").DrawMode | undefined) & import("reselect").OutputSelectorFields<(args_0: import("./reducer").DrawToolItem | undefined) => import("dist/libs/webmap-react/src").DrawMode | undefined, {
40
+ clearCache: () => void;
41
+ }> & {
42
+ clearCache: () => void;
43
+ };
@@ -5,7 +5,7 @@ import type { SetBboxSyncActionPayload, SetBboxSyncPayload, SetLayerActionsSyncP
5
5
  *
6
6
  * These actions should not be used by components directly. Components should only use the generic actions.
7
7
  */
8
- export declare const setTimeSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SetTimePayload, targets: SetTimeSyncPayload[], groups: string[]], SetTimeSyncActionPayload, "GENERIC_SYNC_SETTIME", never, never>;
8
+ export declare const setTimeSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[setTimePayload: SetTimePayload | null, targets: SetTimeSyncPayload[], groups: string[]], SetTimeSyncActionPayload, "GENERIC_SYNC_SETTIME", never, never>;
9
9
  export declare const setBboxSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SetBboxPayload, targets: SetBboxSyncPayload[], groups: string[]], SetBboxSyncActionPayload, "GENERIC_SYNC_SETBBOX", never, never>;
10
10
  export declare const setLayerActionSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SyncLayerPayloads, targets: SyncLayerPayloads[], type: string], SetLayerActionsSyncPayload, "GENERIC_SYNC_SETLAYERACTIONS", never, never>;
11
11
  export type GenericSyncActions = ReturnType<typeof setTimeSync> | ReturnType<typeof setBboxSync> | ReturnType<typeof setLayerActionSync>;
@@ -18,16 +18,16 @@ export interface SetLayerActionsSyncPayload {
18
18
  source: {
19
19
  type: string;
20
20
  payload: SyncLayerPayloads;
21
- };
21
+ } | null;
22
22
  targets: SyncLayerPayloads[];
23
23
  }
24
24
  export interface SetTimeSyncActionPayload {
25
- source: ReturnType<typeof setTime>;
25
+ source: ReturnType<typeof setTime> | null;
26
26
  groups: string[];
27
27
  targets: SetTimeSyncPayload[];
28
28
  }
29
29
  export interface SetBboxSyncActionPayload {
30
- source: ReturnType<typeof setBbox>;
30
+ source: ReturnType<typeof setBbox> | null;
31
31
  groups: string[];
32
32
  targets: SetBboxSyncPayload[];
33
33
  }
@@ -4,6 +4,6 @@ import { WebMapStateModuleState } from './types';
4
4
  export declare const mapStoreReducers: {
5
5
  webmap: import("redux").Reducer<import("./types").WebMapState, import("redux").AnyAction>;
6
6
  services: import("redux").Reducer<import("./types").ServiceState, import("redux").AnyAction>;
7
- layers: import("redux").Reducer<import("immer/dist/internal").WritableDraft<import("./types").LayerState>, import("redux").AnyAction>;
7
+ layers: import("redux").Reducer<import("./types").LayerState, import("redux").AnyAction>;
8
8
  };
9
9
  export declare const mapStoreModuleConfig: Egg<Store<WebMapStateModuleState>>;
@@ -88,6 +88,6 @@ export declare const mapStoreActions: {
88
88
  export * from './service';
89
89
  export * from './map';
90
90
  export * from './layers';
91
- export type { WebMapStateModuleState } from './types';
91
+ export type { WebMapStateModuleState, MapPreset } from './types';
92
92
  export * as storeTestSettings from './storeTestSettings';
93
93
  export * from './config';
@@ -3,7 +3,7 @@ import { SetLayerDimensionsPayload, SetLayerStylePayload, UpdateLayerInfoPayload
3
3
  import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturePayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload, DuplicateMapLayerPayload } from './types';
4
4
  export declare const createLayer: ({ id, opacity, acceptanceTimeInMinutes, enabled, layerType, status, useLatestReferenceTime, ...props }: Layer) => Layer;
5
5
  export declare const initialState: LayerState;
6
- export declare const slice: import("@reduxjs/toolkit").Slice<import("immer/dist/internal").WritableDraft<LayerState>, {
6
+ export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
7
7
  addLayer: (draft: Draft<LayerState>, action: PayloadAction<AddLayerPayload>) => void;
8
8
  duplicateMapLayer: (draft: Draft<LayerState>, action: PayloadAction<DuplicateMapLayerPayload>) => void;
9
9
  layerChangeDimension: (draft: Draft<LayerState>, action: PayloadAction<SetLayerDimensionPayload>) => void;
@@ -26,7 +26,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<import("immer/dist/
26
26
  addAvailableBaseLayer: (draft: Draft<LayerState>, action: PayloadAction<AddAvailableBaseLayerPayload>) => void;
27
27
  addAvailableBaseLayers: (draft: Draft<LayerState>, action: PayloadAction<AddAvailableBaseLayersPayload>) => void;
28
28
  setAvailableBaseLayers: (draft: Draft<LayerState>, action: PayloadAction<SetAvailableBaseLayersPayload>) => void;
29
- setUseLatestReferenceTime: (draft: import("immer/dist/internal").WritableDraft<LayerState>, action: PayloadAction<{
29
+ setUseLatestReferenceTime: (draft: Draft<LayerState>, action: PayloadAction<{
30
30
  id: string;
31
31
  useLatestReferenceTime: boolean;
32
32
  }>) => void;
@@ -40,7 +40,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<import("immer/dist/
40
40
  toggleFeatureMode: (draft: Draft<LayerState>, action: PayloadAction<ToggleFeatureModePayload>) => void;
41
41
  exitFeatureDrawMode: (draft: Draft<LayerState>, action: PayloadAction<ExitFeatureDrawModePayload>) => void;
42
42
  }, "layerReducer">;
43
- export declare const reducer: import("redux").Reducer<import("immer/dist/internal").WritableDraft<LayerState>, import("redux").AnyAction>;
43
+ export declare const reducer: import("redux").Reducer<LayerState, import("redux").AnyAction>;
44
44
  export declare const layerActions: import("@reduxjs/toolkit").CaseReducerActions<{
45
45
  addLayer: (draft: Draft<LayerState>, action: PayloadAction<AddLayerPayload>) => void;
46
46
  duplicateMapLayer: (draft: Draft<LayerState>, action: PayloadAction<DuplicateMapLayerPayload>) => void;
@@ -64,7 +64,7 @@ export declare const layerActions: import("@reduxjs/toolkit").CaseReducerActions
64
64
  addAvailableBaseLayer: (draft: Draft<LayerState>, action: PayloadAction<AddAvailableBaseLayerPayload>) => void;
65
65
  addAvailableBaseLayers: (draft: Draft<LayerState>, action: PayloadAction<AddAvailableBaseLayersPayload>) => void;
66
66
  setAvailableBaseLayers: (draft: Draft<LayerState>, action: PayloadAction<SetAvailableBaseLayersPayload>) => void;
67
- setUseLatestReferenceTime: (draft: import("immer/dist/internal").WritableDraft<LayerState>, action: PayloadAction<{
67
+ setUseLatestReferenceTime: (draft: Draft<LayerState>, action: PayloadAction<{
68
68
  id: string;
69
69
  useLatestReferenceTime: boolean;
70
70
  }>) => void;
@@ -136,6 +136,7 @@ export interface UpdateFeaturePayload extends LayerPayload {
136
136
  reason?: string;
137
137
  geoJSONIntersectionLayerId?: string;
138
138
  geoJSONIntersectionBoundsLayerId?: string;
139
+ selectionType?: string;
139
140
  }
140
141
  export interface UpdateFeaturePropertiesPayload extends LayerPayload {
141
142
  properties: GeoJSON.GeoJsonProperties;
@@ -1,10 +1,10 @@
1
1
  import { layerTypes } from '../layers';
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
- export type FilteredLayerList = {
4
+ export interface FilteredLayerList {
5
5
  mapLayers: layerTypes.Layer[];
6
6
  baseLayers: layerTypes.Layer[];
7
7
  overLayers?: layerTypes.Layer[];
8
- };
8
+ }
9
9
  export declare const parseBoolean: (value: string | boolean) => boolean;
10
10
  export declare const parseLayer: (layer: layerTypes.Layer) => layerTypes.Layer;
@@ -4,7 +4,7 @@ export declare const mapUtils: {
4
4
  replaceLayerIdsToEnsureUniqueLayerIdsInStore: (layerIds: import("./replaceLayerIdsToEnsureUniqueLayerIdsInStore").LayersAndAutoLayerIds) => import("./replaceLayerIdsToEnsureUniqueLayerIdsInStore").LayersAndAutoLayerIds;
5
5
  moveArrayElements<T>(array: T[], oldIndex: number, newIndex: number): T[];
6
6
  dateFormat: "yyyy-MM-dd'T'HH:mm:ss'Z";
7
- createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, isEndTimeOverriding, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, autoUpdateLayerId, autoTimeStepLayerId, timeSliderSpan, timeStep, animationDelay, timeSliderWidth, timeSliderCenterTime, timeSliderSecondsPerPx, isTimestepAuto, isTimeSpanAuto, isTimeSliderHoverOn, isTimeSliderVisible, displayMapPin, disableMapPin, shouldShowZoomControls, }: utils.CreateMapProps) => mapTypes.WebMap;
7
+ createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, shouldEndtimeOverride, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, autoUpdateLayerId, autoTimeStepLayerId, timeSliderSpan, timeStep, animationDelay, timeSliderWidth, timeSliderCenterTime, timeSliderSecondsPerPx, isTimestepAuto, isTimeSpanAuto, isTimeSliderHoverOn, isTimeSliderVisible, displayMapPin, disableMapPin, shouldShowZoomControls, }: utils.CreateMapProps) => mapTypes.WebMap;
8
8
  checkValidLayersPayload: (layers: import("../types").Layer[], mapId: string) => boolean;
9
9
  getDraftMapById: (mapId: string, draft: mapTypes.WebMapState) => mapTypes.WebMap;
10
10
  produceDraftStateSetWebMapDimension: (draft: mapTypes.WebMapState, mapId: string, dimensionFromAction: mapTypes.Dimension, overwriteCurrentValue: boolean) => void;
@@ -0,0 +1,30 @@
1
+ import { SetTimeSyncPayload } from '../../generic/synchronizationActions/types';
2
+ /**
3
+ * Returns the next step for given timerId.
4
+ * @param timerId The timer id
5
+ * @param numberOfStepsInAnimation Animation length in steps
6
+ * @param numStepsToGoForward Amount of steps to go forwards, defaults to 1. Can be positive and negative
7
+ * @returns
8
+ */
9
+ export declare const getNextStep: (timerId: string, numberOfStepsInAnimation: number, numStepsToGoForward?: number) => number;
10
+ /**
11
+ * Set step for the timerId
12
+ * @param timerId
13
+ * @param timerStep
14
+ */
15
+ export declare const setStep: (timerId: string, timerStep: number) => void;
16
+ /**
17
+ * Gets the current step for the timer
18
+ * @param timerId
19
+ * @returns
20
+ */
21
+ export declare const getCurrentStep: (timerId: string) => number;
22
+ export declare const MAX_NUMBER_STEPS_FORWARD_TO_PREFETCH = 2;
23
+ /**
24
+ * This prefetches all images connected to the same sync group as provided timerId
25
+ * @param timerId The timerId
26
+ * @param animationListValues List of animation steps in isostring to animate
27
+ * @param targets List of targets to check
28
+ * @returns True if all maps are ready to go forward, false if the map has no data to display yet.
29
+ */
30
+ export declare const prefetchAnimationTargetsForSaga: (timerId: string, animationListValues: string[], targets: SetTimeSyncPayload[]) => boolean;
@@ -1,24 +1,34 @@
1
- import { SagaIterator } from 'redux-saga';
2
- import { AnimationStep } from '@opengeoweb/webmap';
1
+ import { EventChannel, SagaIterator } from 'redux-saga';
3
2
  import { mapActions } from '.';
4
3
  import { layerActions } from '../layers';
5
4
  import { Layer } from '../layers/types';
6
- export declare const generateTimeList: (start: Date, end: Date, interval: number) => {
7
- name: string;
8
- value: string;
9
- }[];
10
5
  export declare const getAnimationEndTime: (animationEndTime: string) => string;
11
6
  export declare const isAnimationEndTimeValid: (animationEndTime: string) => boolean;
12
- export declare function updateMapDraw(mapId: string, draw: string | AnimationStep[] | undefined, initialAnimationStep?: number): void;
13
7
  export declare function startAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStartAnimation>): Generator;
14
8
  export declare function stopAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStopAnimation>): Generator;
15
9
  export declare function deleteLayerSaga({ payload, }: ReturnType<typeof layerActions.layerDelete>): SagaIterator;
16
10
  export declare function updateAnimation(mapId: string, maxValue: string): SagaIterator;
17
- export declare function setLayerDimensionsSaga({ payload, }: ReturnType<typeof layerActions.onUpdateLayerInformation>): SagaIterator;
11
+ export declare function updateAnimationWithLatestUpdate({ payload, }: ReturnType<typeof layerActions.onUpdateLayerInformation>): SagaIterator;
18
12
  export declare function toggleAutoUpdateSaga({ payload, }: ReturnType<typeof mapActions.toggleAutoUpdate>): SagaIterator;
19
13
  export declare function handleBaseLayersSaga(mapId: string, baseLayers: Layer[]): SagaIterator;
20
14
  export declare function setMapPresetSaga({ payload, }: ReturnType<typeof mapActions.setMapPreset>): SagaIterator;
21
15
  export declare function unregisterMapSaga({ payload, }: ReturnType<typeof mapActions.unregisterMap>): Generator;
22
16
  export declare function setStepBackwardOrForwardSaga({ payload, }: ReturnType<typeof mapActions.setStepBackwardOrForward>): Generator;
17
+ /**
18
+ * This saga is triggered by the metronome. An array of timerIds is given as argument.
19
+ * It will update the animation loop of multiple maps and sliders
20
+ * It will prefetch images for maps
21
+ * @param timerIds string[] array of timerIds
22
+ */
23
+ export declare function metronomeSaga(timerIds: string[]): SagaIterator;
24
+ /**
25
+ * Creates a channel for the metronome
26
+ * @returns
27
+ */
28
+ export declare function metronomeTicker(): EventChannel<string[]>;
29
+ /**
30
+ * Makes a saga channel for the metronome ticker
31
+ */
32
+ export declare function metronomeSagaWithChannel(): SagaIterator;
23
33
  export declare function rootSaga(): SagaIterator;
24
34
  export default rootSaga;
@@ -1,6 +1,6 @@
1
1
  import type { Bbox, MapPreset, WebMap, WebMapState } from './types';
2
2
  import type { CoreAppStore } from '../../types';
3
- import type { Dimension, Layer } from '../types';
3
+ import type { Dimension, Layer, WebMapAnimationList } from '../types';
4
4
  import type { uiTypes } from '../../ui';
5
5
  /**
6
6
  * Gets the map state by mapId
@@ -264,7 +264,7 @@ export declare const linkedMapAnimationInfo: ((state: CoreAppStore, mapId: strin
264
264
  * @param {string} mapId mapId: string - Id of the map
265
265
  * @returns {string} returnType: string
266
266
  */
267
- export declare const getAnimationStartTime: ((state: any, mapId: any) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string, {
267
+ export declare const getAnimationStartTime: ((state: any, mapId: any) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string | undefined, {
268
268
  clearCache: () => void;
269
269
  }> & {
270
270
  clearCache: () => void;
@@ -277,7 +277,7 @@ export declare const getAnimationStartTime: ((state: any, mapId: any) => string)
277
277
  * @param {string} mapId mapId: string - Id of the map
278
278
  * @returns {string} returnType: string
279
279
  */
280
- export declare const getAnimationEndTime: ((state: any, mapId: any) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string, {
280
+ export declare const getAnimationEndTime: ((state: any, mapId: any) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string | undefined, {
281
281
  clearCache: () => void;
282
282
  }> & {
283
283
  clearCache: () => void;
@@ -298,12 +298,12 @@ export declare const isAutoUpdating: ((state: any, mapId: any) => boolean) & imp
298
298
  /**
299
299
  * Gets if endTime and duration of animationPayload are overriding maxValue and minValue of leading layer
300
300
  *
301
- * Example: isEndTimeOverriding = isEndTimeOverriding(store, 'mapid_1')
301
+ * Example: shouldEndtimeOverride = shouldEndtimeOverride(store, 'mapid_1')
302
302
  * @param {object} store store: object - store object
303
303
  * @param {string} mapId mapId: string - Id of the map
304
304
  * @returns {boolean} returnType: boolean
305
305
  */
306
- export declare const isEndTimeOverriding: ((state: any, mapId: any) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => boolean, {
306
+ export declare const shouldEndtimeOverride: ((state: any, mapId: any) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => boolean, {
307
307
  clearCache: () => void;
308
308
  }> & {
309
309
  clearCache: () => void;
@@ -647,7 +647,7 @@ export declare const getLegendId: ((state: any, mapId: any) => string | undefine
647
647
  * @param {string} mapId mapId: string - Id of the map
648
648
  * @returns {MapPreset} returnType: MapPreset
649
649
  */
650
- export declare const getMapPreset: ((state: any, mapId: any) => MapPreset) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: Bbox, args_4: string, args_5: string | undefined, args_6: string | undefined, args_7: string | undefined, args_8: boolean, args_9: boolean, args_10: boolean | undefined, args_11: boolean | undefined, args_12: boolean | undefined, args_13: number, args_14: number | undefined, args_15: string, args_16: string, args_17: boolean | undefined, args_18: string | undefined, args_19: uiTypes.UIStoreType) => MapPreset, {
650
+ export declare const getMapPreset: ((state: any, mapId: any) => MapPreset) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: Bbox, args_4: string, args_5: string | undefined, args_6: string | undefined, args_7: string | undefined, args_8: boolean, args_9: boolean, args_10: boolean | undefined, args_11: boolean | undefined, args_12: boolean | undefined, args_13: number, args_14: number | undefined, args_15: string | undefined, args_16: string | undefined, args_17: boolean | undefined, args_18: string | undefined, args_19: uiTypes.UIStoreType) => MapPreset, {
651
651
  clearCache: () => void;
652
652
  }> & {
653
653
  clearCache: () => void;
@@ -692,3 +692,14 @@ export declare const getDockedLayerManagerSize: ((state: any, mapId: any) => imp
692
692
  }> & {
693
693
  clearCache: () => void;
694
694
  };
695
+ /**
696
+ * Returns the animation list for given map id
697
+ * @param {object} store store: object - store object
698
+ * @param {string} mapId mapId: string - Id of the map
699
+ * @returns {animationList} returnType: WebMapAnimationList, list of timesteps to animate for this map.
700
+ */
701
+ export declare const getAnimationList: ((state: any, mapId: any) => WebMapAnimationList) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined, args_1: string | undefined, args_2: string | undefined, args_3: number) => WebMapAnimationList, {
702
+ clearCache: () => void;
703
+ }> & {
704
+ clearCache: () => void;
705
+ };
@@ -13,13 +13,18 @@ export interface Dimension {
13
13
  validSyncSelection?: boolean;
14
14
  values?: string;
15
15
  }
16
+ export type WebMapAnimationList = {
17
+ name: string;
18
+ value: string;
19
+ }[];
16
20
  export interface WebMap {
17
21
  id: string;
18
22
  isAnimating: boolean;
19
23
  animationStartTime?: string;
20
24
  animationEndTime?: string;
25
+ timeList?: WebMapAnimationList | undefined;
21
26
  isAutoUpdating: boolean;
22
- isEndTimeOverriding: boolean;
27
+ shouldEndtimeOverride: boolean;
23
28
  srs: string;
24
29
  bbox: Bbox;
25
30
  mapLayers: string[];
@@ -108,10 +113,10 @@ export interface MoveLayerPayload {
108
113
  newIndex: number;
109
114
  origin: string;
110
115
  }
111
- export type TimeListType = {
116
+ export interface TimeListType {
112
117
  name: string;
113
118
  value: string;
114
- };
119
+ }
115
120
  export interface SetMapAnimationStartPayload {
116
121
  mapId: string;
117
122
  start?: string;
@@ -10,7 +10,7 @@ export interface CreateMapProps {
10
10
  animationStartTime?: string;
11
11
  animationEndTime?: string;
12
12
  isAutoUpdating?: boolean;
13
- isEndTimeOverriding?: boolean;
13
+ shouldEndtimeOverride?: boolean;
14
14
  srs?: string;
15
15
  bbox?: Bbox;
16
16
  mapLayers?: string[];
@@ -34,7 +34,7 @@ export interface CreateMapProps {
34
34
  disableMapPin?: boolean;
35
35
  shouldShowZoomControls?: boolean;
36
36
  }
37
- export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, isEndTimeOverriding, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, autoUpdateLayerId, autoTimeStepLayerId, timeSliderSpan, timeStep, animationDelay, timeSliderWidth, timeSliderCenterTime, timeSliderSecondsPerPx, isTimestepAuto, isTimeSpanAuto, isTimeSliderHoverOn, isTimeSliderVisible, displayMapPin, disableMapPin, shouldShowZoomControls, }: CreateMapProps) => WebMap;
37
+ export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, shouldEndtimeOverride, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, autoUpdateLayerId, autoTimeStepLayerId, timeSliderSpan, timeStep, animationDelay, timeSliderWidth, timeSliderCenterTime, timeSliderSecondsPerPx, isTimestepAuto, isTimeSpanAuto, isTimeSliderHoverOn, isTimeSliderVisible, displayMapPin, disableMapPin, shouldShowZoomControls, }: CreateMapProps) => WebMap;
38
38
  export declare const checkValidLayersPayload: (layers: Layer[], mapId: string) => boolean;
39
39
  /**
40
40
  * This will get the map from the map draftstate.
@@ -6,9 +6,7 @@ export interface InitialService {
6
6
  scope?: ServiceScope;
7
7
  abstract?: string;
8
8
  }
9
- export interface Services {
10
- [key: string]: ReduxService;
11
- }
9
+ export type Services = Record<string, ReduxService>;
12
10
  export type ServiceScope = 'user' | 'system';
13
11
  export interface ReduxService {
14
12
  id?: string;
@@ -1,15 +1,13 @@
1
1
  import React from 'react';
2
- import { ThemeProviderProps } from '@opengeoweb/theme';
3
2
  import { Store } from '@reduxjs/toolkit';
4
3
  export declare const createStore: () => Store;
5
- interface ThemeStoreProviderProps extends ThemeProviderProps {
6
- store: Store;
7
- }
8
4
  /**
9
5
  * A Provider component which provides the GeoWeb theme and store for the core.
10
6
  * Note: Should only be used with core components, as the provided store is only for core.
11
7
  * @param children
12
8
  * @returns
13
9
  */
14
- export declare const ThemeStoreProvider: React.FC<ThemeStoreProviderProps>;
15
- export {};
10
+ export declare const StoreProvider: React.FC<{
11
+ children?: React.ReactNode;
12
+ store: Store;
13
+ }>;
@@ -0,0 +1,2 @@
1
+ import { CoreAppStore } from '../types';
2
+ export declare const uiListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<CoreAppStore, import("@reduxjs/toolkit").ThunkDispatch<CoreAppStore, unknown, import("redux").AnyAction>, unknown>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +0,0 @@
1
- import { SagaIterator } from 'redux-saga';
2
- export declare function registerMapUISaga(): SagaIterator;
3
- export declare function unregisterUIMapSaga(): SagaIterator;
4
- export declare function rootSaga(): SagaIterator;
5
- export default rootSaga;