@opengeoweb/taf 20.0.0 → 20.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.
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import type { UseMutationReturnType } from '@opengeoweb/api';
|
|
2
3
|
import type { TafError } from '../../components/TafLayout/utils';
|
|
3
4
|
import type { TAC, Taf, TafFromBackend, TafFromFrontEnd, TafConfig, ForecastType } from '../../types';
|
|
4
5
|
export declare const useTafList: (type?: ForecastType, disabled?: boolean) => UseQueryResult<TafFromBackend[]>;
|
|
5
6
|
export declare const useTafConfig: (type?: ForecastType, disabled?: boolean) => UseQueryResult<TafConfig>;
|
|
6
|
-
type PostReturnType<T> = UseMutationResult<Response | null, Error, T>;
|
|
7
7
|
interface PostTafProps {
|
|
8
8
|
tafData: TafFromFrontEnd;
|
|
9
9
|
isAutoSaved: boolean;
|
|
10
10
|
setError: React.Dispatch<React.SetStateAction<TafError | null>>;
|
|
11
11
|
}
|
|
12
|
-
export declare const usePostTaf: (forecastType?: ForecastType) =>
|
|
13
|
-
type PatchReturnType<T> = UseMutationResult<Response | null, Error, T>;
|
|
12
|
+
export declare const usePostTaf: (forecastType?: ForecastType) => UseMutationReturnType<Response | null, PostTafProps>;
|
|
14
13
|
interface PatchTafProps {
|
|
15
14
|
tafData: TafFromFrontEnd;
|
|
16
15
|
setError: React.Dispatch<React.SetStateAction<TafError | null>>;
|
|
17
16
|
force?: boolean;
|
|
18
17
|
}
|
|
19
|
-
export declare const usePatchTaf: (forecastType?: ForecastType) =>
|
|
20
|
-
type GetTACReturnType<T> = UseMutationResult<TAC, Error, T>;
|
|
18
|
+
export declare const usePatchTaf: (forecastType?: ForecastType) => UseMutationReturnType<Response | null, PatchTafProps>;
|
|
21
19
|
interface GetTACProps {
|
|
22
20
|
tafData: Taf;
|
|
23
21
|
}
|
|
24
|
-
export declare const useGetTAC: (forecastType?: ForecastType) =>
|
|
22
|
+
export declare const useGetTAC: (forecastType?: ForecastType) => UseMutationReturnType<TAC, GetTACProps>;
|
|
25
23
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/taf",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.1",
|
|
4
4
|
"description": "GeoWeb TAF library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@opengeoweb/api": "20.0.
|
|
24
|
-
"@opengeoweb/shared": "20.0.
|
|
23
|
+
"@opengeoweb/api": "20.0.1",
|
|
24
|
+
"@opengeoweb/shared": "20.0.1",
|
|
25
25
|
"react-hook-form": "^7.50.1",
|
|
26
|
-
"@opengeoweb/theme": "20.0.
|
|
27
|
-
"@opengeoweb/form-fields": "20.0.
|
|
28
|
-
"@opengeoweb/authentication": "20.0.
|
|
26
|
+
"@opengeoweb/theme": "20.0.1",
|
|
27
|
+
"@opengeoweb/form-fields": "20.0.1",
|
|
28
|
+
"@opengeoweb/authentication": "20.0.1",
|
|
29
29
|
"@reduxjs/toolkit": "^2.6.1",
|
|
30
30
|
"react-redux": "^9.2.0",
|
|
31
|
-
"@opengeoweb/snackbar": "20.0.
|
|
31
|
+
"@opengeoweb/snackbar": "20.0.1",
|
|
32
32
|
"react-sortablejs": "^6.1.4",
|
|
33
33
|
"sortablejs": "^1.15.1",
|
|
34
34
|
"@emotion/react": "^11.14.0",
|