@opengeoweb/warnings 6.0.0 → 6.0.1

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/warnings",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "GeoWeb warinings library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -9,15 +9,16 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@mui/material": "5.12.0",
12
- "@opengeoweb/api": "6.0.0",
13
- "@opengeoweb/core": "6.0.0",
14
- "@opengeoweb/shared": "6.0.0",
15
- "@opengeoweb/store": "6.0.0",
16
- "@opengeoweb/theme": "6.0.0",
12
+ "@opengeoweb/api": "6.0.1",
13
+ "@opengeoweb/core": "6.0.1",
14
+ "@opengeoweb/shared": "6.0.1",
15
+ "@opengeoweb/store": "6.0.1",
16
+ "@opengeoweb/theme": "6.0.1",
17
17
  "@reduxjs/toolkit": "1.9.5",
18
- "axios": "1.4.0",
18
+ "axios": "1.2.0",
19
19
  "react": "18.2.0",
20
- "react-redux": "8.1.1"
20
+ "react-redux": "8.1.1",
21
+ "redux-saga": "1.2.3"
21
22
  },
22
23
  "module": "./index.js",
23
24
  "main": "./index.js",
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const WarningsDemo: () => React.ReactElement;
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { HeaderSize } from '@opengeoweb/shared';
3
3
  import { uiTypes } from '@opengeoweb/store';
4
+ import { DrawingListItem } from '../../store/drawings/types';
4
5
  export declare type Size = {
5
6
  width: number;
6
7
  height: number;
@@ -23,4 +24,7 @@ export declare const AreaManager: React.FC<{
23
24
  startPosition?: Position;
24
25
  setFocused?: (focused: boolean) => void;
25
26
  headerSize?: HeaderSize;
27
+ drawingListItems: DrawingListItem[];
28
+ onClickDrawing?: (drawing: DrawingListItem, isActive: boolean) => void;
29
+ onUnMount?: () => void;
26
30
  }>;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { uiTypes } from '@opengeoweb/store';
2
+ import React from 'react';
3
3
  export declare const AreaManagerConnect: React.FC<{
4
4
  bounds?: string;
5
5
  source?: uiTypes.Source;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { DrawingListItem } from '../../store/drawings/types';
3
+ export declare const Drawings: FC<{
4
+ drawings: DrawingListItem[];
5
+ onClickDrawing: (drawing: DrawingListItem, isActive: boolean) => void;
6
+ }>;
@@ -0,0 +1,2 @@
1
+ export { AreaManagerMapButtonConnect } from './AreaManagerMapButtonConnect';
2
+ export { AreaManagerConnect } from './AreaManagerConnect';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import drawingSagas from './drawings/sagas';
2
+ declare const drawingModuleConfig: {
3
+ id: string;
4
+ reducersMap: {};
5
+ sagas: (typeof drawingSagas)[];
6
+ };
7
+ export default drawingModuleConfig;
@@ -0,0 +1,6 @@
1
+ import { SagaIterator } from 'redux-saga';
2
+ export declare function onOpenUiDialogSaga({ payload }: {
3
+ payload: any;
4
+ }): SagaIterator;
5
+ declare function drawingSaga(): SagaIterator;
6
+ export default drawingSaga;
@@ -0,0 +1 @@
1
+ export {};
@@ -4,10 +4,10 @@ export interface DrawingListItem {
4
4
  name: string;
5
5
  lastUpdatedTime: string;
6
6
  scope: DrawingScope;
7
+ area: GeoJSON.FeatureCollection;
7
8
  }
8
9
  export interface DrawingFromBE extends DrawingListItem {
9
10
  username: string;
10
- area: GeoJSON.FeatureCollection;
11
11
  }
12
12
  export interface DrawingDetails extends Omit<DrawingFromBE, 'id' | 'lastUpdatedTime'> {
13
13
  id?: string;
@@ -1,4 +1,4 @@
1
- import { DrawingDetails, DrawingFromBE, DrawingListItem } from '../drawings/types';
1
+ import { DrawingDetails, DrawingFromBE, DrawingListItem } from '../store/drawings/types';
2
2
  export declare const API_NAME = "warnings";
3
3
  export declare type WarningsApi = {
4
4
  getDrawings: () => Promise<{
@@ -11,3 +11,4 @@ export declare type WarningsApi = {
11
11
  saveDrawingAs: (data: DrawingDetails) => Promise<string>;
12
12
  deleteDrawing: (drawingId: string) => Promise<void>;
13
13
  };
14
+ export declare const getWarningsApi: () => WarningsApi;
@@ -1,5 +1,5 @@
1
1
  import { WarningsApi } from './api';
2
- import { DrawingFromBE } from '../drawings/types';
2
+ import { DrawingFromBE } from '../store/drawings/types';
3
3
  export declare const ERROR_NOT_FOUND = "Request failed with status code 400";
4
4
  export declare const extractDrawingDetailsFromJSON: (drawingId: string) => DrawingFromBE;
5
5
  export declare const createApi: () => WarningsApi;
@@ -0,0 +1 @@
1
+ export {};