@opengeoweb/soundings 19.1.1 → 19.3.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/dist/index.esm.js +472 -363
- package/dist/src/lib/api/edr-api/api.d.ts +3 -1
- package/dist/src/lib/api/edr-api/hooks.d.ts +2 -1
- package/dist/src/lib/api/edr-api/queryOptions.d.ts +11 -0
- package/dist/src/lib/components/MenuBar/SoundingsSourceMenu.d.ts +5 -1
- package/dist/src/lib/components/Soundings/constants.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { Coverage, CoverageCollection, VerticalProfileDomain } from '@opengeoweb/shared';
|
|
2
|
-
import type { CollectionDetails, LocationsResponseFromBE, SoundingsInstances } from './types';
|
|
2
|
+
import type { CollectionDetails, LocationsResponseFromBE, SoundingsInstance, SoundingsInstances } from './types';
|
|
3
3
|
export declare const getCollectionLocations: (collectionId: string, baseUrl: string) => Promise<LocationsResponseFromBE>;
|
|
4
|
+
export declare const getInstanceLocations: (collectionId: string, instanceId: string, baseUrl: string) => Promise<LocationsResponseFromBE>;
|
|
4
5
|
export declare const getCollectionInstances: (collectionId: string, baseUrl: string) => Promise<SoundingsInstances>;
|
|
5
6
|
export declare const getCollectionDetails: (collectionId: string, baseUrl: string) => Promise<CollectionDetails>;
|
|
7
|
+
export declare const getInstanceDetails: (collectionId: string, instanceId: string, baseUrl: string) => Promise<SoundingsInstance>;
|
|
6
8
|
export declare const getEdrCollectionForLocation: (collectionId: string, baseUrl: string, instanceId: string | undefined, locationId: string, parameters: string[], datetime: string, verticalRange: string) => Promise<CoverageCollection<VerticalProfileDomain> | Coverage<VerticalProfileDomain>>;
|
|
7
9
|
export declare const getEdrCollectionForPosition: (collectionId: string, baseUrl: string, instanceId: string | undefined, coordinates: [number, number], parameters: string[], datetime: string, verticalRange: string) => Promise<CoverageCollection<VerticalProfileDomain> | Coverage<VerticalProfileDomain>>;
|
|
8
10
|
/**
|
|
@@ -40,10 +40,11 @@ export declare const useGetCollectionsInstances: (collections?: SoundingsCollect
|
|
|
40
40
|
isPending: boolean;
|
|
41
41
|
error: Error | null | undefined;
|
|
42
42
|
};
|
|
43
|
-
export declare const
|
|
43
|
+
export declare const useGetLocations: <SoundingsCollectionLike extends {
|
|
44
44
|
id: string;
|
|
45
45
|
url: string;
|
|
46
46
|
name: string;
|
|
47
|
+
instanceId?: string;
|
|
47
48
|
}>(collections: SoundingsCollectionLike[], enabled?: boolean) => {
|
|
48
49
|
data: ServiceWithLocations[] | undefined;
|
|
49
50
|
isPending: boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SoundingsInstances } from './types';
|
|
2
|
+
export declare const soundingsQueryOptions: {
|
|
3
|
+
readonly getCollectionInstances: (collectionId: string, url: string) => import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<SoundingsInstances, Error, SoundingsInstances, readonly ["edr-soundings-instances", string, string]>, "queryFn"> & {
|
|
4
|
+
queryFn?: import("@tanstack/query-core").QueryFunction<SoundingsInstances, readonly ["edr-soundings-instances", string, string], never> | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
queryKey: readonly ["edr-soundings-instances", string, string] & {
|
|
7
|
+
[dataTagSymbol]: SoundingsInstances;
|
|
8
|
+
[dataTagErrorSymbol]: Error;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -11,6 +11,10 @@ interface SoundingsSourceMenuProps {
|
|
|
11
11
|
order?: number;
|
|
12
12
|
isLoading?: boolean;
|
|
13
13
|
error?: Error | null;
|
|
14
|
+
startSize?: {
|
|
15
|
+
width?: number;
|
|
16
|
+
height?: number;
|
|
17
|
+
};
|
|
14
18
|
}
|
|
15
|
-
export declare const SoundingsSourceMenu: ({ soundingsCollections, isOpen, handleClose, updateCollection, sourceSelections, onMouseDown, order, isLoading, error, }: SoundingsSourceMenuProps) => React.ReactElement;
|
|
19
|
+
export declare const SoundingsSourceMenu: ({ soundingsCollections, isOpen, handleClose, updateCollection, sourceSelections, onMouseDown, order, isLoading, error, startSize, }: SoundingsSourceMenuProps) => React.ReactElement;
|
|
16
20
|
export {};
|
|
@@ -18,3 +18,5 @@ export declare const REFERENCE_PRESSURE: number;
|
|
|
18
18
|
export declare const EARTH_MEAN_RADIUS = 6371;
|
|
19
19
|
export declare const MAX_PROXIMITY_RADIUS = 100;
|
|
20
20
|
export declare const SAME_POINT_DISTANCE_KM = 0.05;
|
|
21
|
+
export declare const SOUNDINGS_CONTAINER_BREAKPOINT_PX = "600px";
|
|
22
|
+
export declare const SOUNDINGS_CONTAINER_NAME = "soundings-container";
|