@opengeoweb/sigmet-airmet 4.0.0 → 4.2.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/README.md +1 -1
- package/index.esm.js +3 -3
- package/index.umd.js +3 -3
- package/lib/AirmetDemo.stories.d.ts +9 -1
- package/lib/SigmetDemo.stories.d.ts +9 -1
- package/lib/components/MetInfoWrapper/MetInfoWrapper.d.ts +1 -1
- package/lib/utils/api.d.ts +2 -2
- package/lib/utils/testUtils.d.ts +2 -2
- package/package.json +8 -9
package/README.md
CHANGED
package/index.esm.js
CHANGED
|
@@ -5215,7 +5215,7 @@ var ProductFormDialog = function ProductFormDialog(_ref) {
|
|
|
5215
5215
|
* @param {string} productType productType: string - either 'sigmet' or 'airmet'. Determines mode in which wrapper is loaded
|
|
5216
5216
|
*
|
|
5217
5217
|
* @example
|
|
5218
|
-
* ```<ApiProvider baseURL="http://test.com" appURL="http://app.com" auth={auth} onSetAuth={onSetAuth} createApi={api.createApi}
|
|
5218
|
+
* ```<ApiProvider baseURL="http://test.com" appURL="http://app.com" auth={auth} onSetAuth={onSetAuth} createApi={api.createApi} authTokenURL="url/tokenrefresh"> <MetInfoWrapper productType="sigmet"/> </ApiProvider>```
|
|
5219
5219
|
*/
|
|
5220
5220
|
|
|
5221
5221
|
var MetInfoWrapper = function MetInfoWrapper(_ref) {
|
|
@@ -5327,8 +5327,8 @@ var getApiRoutes = function getApiRoutes(axiosInstance) {
|
|
|
5327
5327
|
};
|
|
5328
5328
|
};
|
|
5329
5329
|
|
|
5330
|
-
var createApi = function createApi(
|
|
5331
|
-
var axiosInstance = createApiInstance(
|
|
5330
|
+
var createApi = function createApi(props) {
|
|
5331
|
+
var axiosInstance = createApiInstance(props);
|
|
5332
5332
|
return getApiRoutes(axiosInstance);
|
|
5333
5333
|
};
|
|
5334
5334
|
|
package/index.umd.js
CHANGED
|
@@ -5095,7 +5095,7 @@
|
|
|
5095
5095
|
* @param {string} productType productType: string - either 'sigmet' or 'airmet'. Determines mode in which wrapper is loaded
|
|
5096
5096
|
*
|
|
5097
5097
|
* @example
|
|
5098
|
-
* ```<ApiProvider baseURL="http://test.com" appURL="http://app.com" auth={auth} onSetAuth={onSetAuth} createApi={api.createApi}
|
|
5098
|
+
* ```<ApiProvider baseURL="http://test.com" appURL="http://app.com" auth={auth} onSetAuth={onSetAuth} createApi={api.createApi} authTokenURL="url/tokenrefresh"> <MetInfoWrapper productType="sigmet"/> </ApiProvider>```
|
|
5099
5099
|
*/
|
|
5100
5100
|
|
|
5101
5101
|
var MetInfoWrapper = function MetInfoWrapper(_a) {
|
|
@@ -5186,8 +5186,8 @@
|
|
|
5186
5186
|
};
|
|
5187
5187
|
};
|
|
5188
5188
|
|
|
5189
|
-
var createApi = function createApi(
|
|
5190
|
-
var axiosInstance = api.createApiInstance(
|
|
5189
|
+
var createApi = function createApi(props) {
|
|
5190
|
+
var axiosInstance = api.createApiInstance(props);
|
|
5191
5191
|
return getApiRoutes(axiosInstance);
|
|
5192
5192
|
};
|
|
5193
5193
|
|
|
@@ -3,4 +3,12 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const AirmetDialogDemo:
|
|
6
|
+
export declare const AirmetDialogDemo: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
parameters: {
|
|
9
|
+
zeplinLink: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -3,4 +3,12 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const SigmetDialogDemo:
|
|
6
|
+
export declare const SigmetDialogDemo: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
parameters: {
|
|
9
|
+
zeplinLink: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -10,7 +10,7 @@ export interface MetInfoWrapperProps {
|
|
|
10
10
|
* @param {string} productType productType: string - either 'sigmet' or 'airmet'. Determines mode in which wrapper is loaded
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
|
-
* ```<ApiProvider baseURL="http://test.com" appURL="http://app.com" auth={auth} onSetAuth={onSetAuth} createApi={api.createApi}
|
|
13
|
+
* ```<ApiProvider baseURL="http://test.com" appURL="http://app.com" auth={auth} onSetAuth={onSetAuth} createApi={api.createApi} authTokenURL="url/tokenrefresh"> <MetInfoWrapper productType="sigmet"/> </ApiProvider>```
|
|
14
14
|
*/
|
|
15
15
|
declare const MetInfoWrapper: React.FC<MetInfoWrapperProps>;
|
|
16
16
|
export default MetInfoWrapper;
|
package/lib/utils/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateApiProps } from '@opengeoweb/api';
|
|
2
2
|
import { Airmet, AirmetFromBackend, AirmetFromFrontend, Sigmet, SigmetFromBackend, SigmetFromFrontend } from '../types';
|
|
3
3
|
export declare type SigmetAirmetApi = {
|
|
4
4
|
getSigmetList: () => Promise<{
|
|
@@ -16,4 +16,4 @@ export declare type SigmetAirmetApi = {
|
|
|
16
16
|
data: string;
|
|
17
17
|
}>;
|
|
18
18
|
};
|
|
19
|
-
export declare const createApi:
|
|
19
|
+
export declare const createApi: (props: CreateApiProps) => SigmetAirmetApi;
|
package/lib/utils/testUtils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { CreateApiFn } from '@opengeoweb/api';
|
|
3
3
|
import { Store } from '@reduxjs/toolkit';
|
|
4
4
|
import { AxiosError } from 'axios';
|
|
5
5
|
interface StoryWrapperProps {
|
|
@@ -7,7 +7,7 @@ interface StoryWrapperProps {
|
|
|
7
7
|
}
|
|
8
8
|
interface TestWrapperProps extends StoryWrapperProps {
|
|
9
9
|
store?: Store;
|
|
10
|
-
createApi?:
|
|
10
|
+
createApi?: CreateApiFn;
|
|
11
11
|
}
|
|
12
12
|
export declare const TestWrapper: React.FC<TestWrapperProps>;
|
|
13
13
|
export declare const StoryWrapperFakeApi: React.FC<StoryWrapperProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/sigmet-airmet",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,33 +14,32 @@
|
|
|
14
14
|
"react": "^17.0.2",
|
|
15
15
|
"react-redux": "^8.0.2",
|
|
16
16
|
"@mui/material": "^5.2.8",
|
|
17
|
-
"@opengeoweb/shared": "4.
|
|
18
|
-
"@opengeoweb/theme": "4.
|
|
17
|
+
"@opengeoweb/shared": "4.2.0",
|
|
18
|
+
"@opengeoweb/theme": "4.2.0",
|
|
19
19
|
"react-draggable": "^4.4.3",
|
|
20
20
|
"re-resizable": "^6.9.0",
|
|
21
21
|
"lodash": "^4.17.20",
|
|
22
|
-
"@opengeoweb/form-fields": "4.
|
|
22
|
+
"@opengeoweb/form-fields": "4.2.0",
|
|
23
23
|
"react-hook-form": "^6.12.1",
|
|
24
24
|
"moment": "^2.29.0",
|
|
25
25
|
"moment-timezone": "^0.5.31",
|
|
26
26
|
"@mui/lab": "^5.0.0-alpha.64",
|
|
27
27
|
"axios": "^0.25.0",
|
|
28
|
-
"@opengeoweb/core": "4.
|
|
29
|
-
"@mui/styles": "^5.2.3",
|
|
28
|
+
"@opengeoweb/core": "4.2.0",
|
|
30
29
|
"react-intl": "^5.17.5",
|
|
31
|
-
"@opengeoweb/webmap": "4.
|
|
30
|
+
"@opengeoweb/webmap": "4.2.0",
|
|
32
31
|
"throttle-debounce": "^3.0.1",
|
|
33
32
|
"proj4": "^2.6.2",
|
|
34
33
|
"react-sortablejs": "^6.0.0",
|
|
35
34
|
"react-window": "^1.8.7",
|
|
36
|
-
"immer": "^9.0.15",
|
|
37
35
|
"redux-dynamic-modules": "^5.2.0",
|
|
36
|
+
"immer": "^9.0.15",
|
|
38
37
|
"@reduxjs/toolkit": "^1.8.3",
|
|
39
38
|
"lodash.clonedeep": "^4.5.0",
|
|
40
39
|
"@turf/turf": "^5.1.6",
|
|
41
40
|
"redux-dynamic-modules-saga": "^5.2.0",
|
|
42
41
|
"redux-saga": "^1.1.3",
|
|
43
|
-
"@opengeoweb/api": "4.
|
|
42
|
+
"@opengeoweb/api": "4.2.0"
|
|
44
43
|
},
|
|
45
44
|
"peerDependencies": {}
|
|
46
45
|
}
|