@opengeoweb/store 6.1.1 → 7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/store",
3
- "version": "6.1.1",
3
+ "version": "7.0.0",
4
4
  "description": "GeoWeb Store library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -12,8 +12,9 @@
12
12
  "main": "./index.esm.js",
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
- "@opengeoweb/webmap": "6.1.1",
16
- "@opengeoweb/webmap-react": "6.1.1",
15
+ "@opengeoweb/shared": "7.0.0",
16
+ "@opengeoweb/webmap": "7.0.0",
17
+ "@opengeoweb/webmap-react": "7.0.0",
17
18
  "@redux-eggs/core": "2.2.0",
18
19
  "@redux-eggs/redux-toolkit": "2.2.0",
19
20
  "@redux-eggs/saga-extension": "2.2.0",
@@ -1,9 +1,9 @@
1
1
  import { PayloadAction, Draft } from '@reduxjs/toolkit';
2
- import { DrawItem, DrawState, SetDrawValuesPayload } from './types';
2
+ import { DrawItem, DrawState, SetDrawValuesPayload, SubmitDrawValuesPayload } from './types';
3
3
  export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawItem>;
4
4
  export declare const initialState: DrawState;
5
5
  export declare const reducer: import("redux").Reducer<DrawState, import("redux").AnyAction>;
6
6
  export declare const drawActions: import("@reduxjs/toolkit").CaseReducerActions<{
7
7
  setDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SetDrawValuesPayload>) => void;
8
- submitDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SetDrawValuesPayload>) => void;
8
+ submitDrawValues: (draft: Draft<DrawState>, action: PayloadAction<SubmitDrawValuesPayload>) => void;
9
9
  }, "draw">;
@@ -9,4 +9,13 @@ export type DrawState = EntityState<DrawItem>;
9
9
  export interface DrawModuleStore {
10
10
  drawings?: DrawState;
11
11
  }
12
+ export type DrawingScope = 'user';
12
13
  export type SetDrawValuesPayload = DrawItem;
14
+ export type SubmitDrawValuesPayload = {
15
+ id?: string;
16
+ area: GeoJSON.FeatureCollection;
17
+ name: string;
18
+ mapId: string;
19
+ lastUpdatedTime?: string;
20
+ scope: DrawingScope;
21
+ };
@@ -58,7 +58,7 @@ export declare const getDialogIsOrderedOnTop: ((state: CoreAppStore, dialogType:
58
58
  }> & {
59
59
  clearCache: () => void;
60
60
  };
61
- export declare const getDialogSource: ((state: CoreAppStore, dialogType: string) => import("./types").Source) & import("reselect").OutputSelectorFields<(args_0: UIType) => import("./types").Source, {
61
+ export declare const getDialogSource: ((state: CoreAppStore, dialogType: string) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source) & import("reselect").OutputSelectorFields<(args_0: UIType) => import("dist/libs/shared/src/lib/components/ToolContainer/ToolContainerDraggable").Source, {
62
62
  clearCache: () => void;
63
63
  }> & {
64
64
  clearCache: () => void;
@@ -1,3 +1,4 @@
1
+ import { Source } from '@opengeoweb/shared';
1
2
  import { MapActionOrigin } from '../mapStore/map/enums';
2
3
  type LegendDialogType = string;
3
4
  type GetFeatureInfoDialogType = string;
@@ -17,7 +18,7 @@ export declare enum DialogTypes {
17
18
  AreaManager = "areaManager"
18
19
  }
19
20
  export type DialogType = DialogTypes | LegendDialogType | GetFeatureInfoDialogType;
20
- export type Source = 'app' | 'module';
21
+ export type { Source };
21
22
  export interface UIType {
22
23
  type: DialogType;
23
24
  activeMapId: string;
@@ -75,4 +76,3 @@ export interface UISetDialogFocusedPayload {
75
76
  type: DialogType;
76
77
  focused: boolean;
77
78
  }
78
- export {};