@opengeoweb/warnings 6.0.2 → 6.0.4
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 +3552 -2
- package/package.json +6 -6
- package/src/index.d.ts +3 -1
- package/src/lib/components/AreaManager/AreaManager.d.ts +3 -1
- package/src/lib/components/AreaManager/Drawings.d.ts +2 -1
- package/src/lib/components/AreaManager/Drawings.spec.d.ts +1 -0
- package/src/lib/components/WarningsModuleProvider/WarningsModuleProvider.d.ts +7 -0
- package/src/lib/components/WarningsModuleProvider/index.d.ts +1 -0
- package/src/lib/store/config.d.ts +1 -1
- package/src/lib/utils/api.d.ts +4 -0
- package/src/lib/utils/api.spec.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/warnings",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"description": "GeoWeb warinings library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@mui/material": "5.12.0",
|
|
12
|
-
"@opengeoweb/api": "6.0.
|
|
13
|
-
"@opengeoweb/core": "6.0.
|
|
14
|
-
"@opengeoweb/shared": "6.0.
|
|
15
|
-
"@opengeoweb/store": "6.0.
|
|
16
|
-
"@opengeoweb/theme": "6.0.
|
|
12
|
+
"@opengeoweb/api": "6.0.4",
|
|
13
|
+
"@opengeoweb/core": "6.0.4",
|
|
14
|
+
"@opengeoweb/shared": "6.0.4",
|
|
15
|
+
"@opengeoweb/store": "6.0.4",
|
|
16
|
+
"@opengeoweb/theme": "6.0.4",
|
|
17
17
|
"@reduxjs/toolkit": "1.9.5",
|
|
18
18
|
"axios": "1.4.0",
|
|
19
19
|
"react": "18.2.0",
|
package/src/index.d.ts
CHANGED
|
@@ -25,7 +25,9 @@ export declare const AreaManager: React.FC<{
|
|
|
25
25
|
setFocused?: (focused: boolean) => void;
|
|
26
26
|
headerSize?: HeaderSize;
|
|
27
27
|
drawingListItems: DrawingListItem[];
|
|
28
|
-
onClickDrawing?: (drawing: DrawingListItem
|
|
28
|
+
onClickDrawing?: (drawing: DrawingListItem) => void;
|
|
29
29
|
onUnMount?: () => void;
|
|
30
30
|
onEditDrawing?: (drawingId: string) => void;
|
|
31
|
+
activeDrawingId?: string;
|
|
32
|
+
error?: string;
|
|
31
33
|
}>;
|
|
@@ -2,6 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { DrawingListItem } from '../../store/drawings/types';
|
|
3
3
|
export declare const Drawings: FC<{
|
|
4
4
|
drawings: DrawingListItem[];
|
|
5
|
-
onClickDrawing: (drawing: DrawingListItem
|
|
5
|
+
onClickDrawing: (drawing: DrawingListItem) => void;
|
|
6
6
|
onClickEdit: (drawingId: string) => void;
|
|
7
|
+
activeDrawing: string;
|
|
7
8
|
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ApiModule } from '@opengeoweb/api';
|
|
3
|
+
interface WarningsModuleProviderProps extends ApiModule {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const WarningsModuleProvider: React.FC<WarningsModuleProviderProps>;
|
|
7
|
+
export default WarningsModuleProvider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WarningsModuleProvider } from './WarningsModuleProvider';
|
package/src/lib/utils/api.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CreateApiProps } from '@opengeoweb/api';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
1
3
|
import { DrawingDetails, DrawingFromBE, DrawingListItem } from '../store/drawings/types';
|
|
2
4
|
export declare const API_NAME = "warnings";
|
|
3
5
|
export type WarningsApi = {
|
|
@@ -11,4 +13,6 @@ export type WarningsApi = {
|
|
|
11
13
|
saveDrawingAs: (data: DrawingDetails) => Promise<string>;
|
|
12
14
|
deleteDrawing: (drawingId: string) => Promise<void>;
|
|
13
15
|
};
|
|
16
|
+
export declare const getApiRoutes: (axiosInstance: AxiosInstance) => WarningsApi;
|
|
14
17
|
export declare const getWarningsApi: () => WarningsApi;
|
|
18
|
+
export declare const createApi: (props: CreateApiProps) => WarningsApi;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|