@opengeoweb/soundings 14.4.0 → 14.5.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/index.esm.js +2688 -2605
- package/package.json +8 -8
- package/src/lib/api/edr-api/api.d.ts +2 -2
- package/src/lib/api/edr-api/hooks.d.ts +5 -5
- package/src/lib/api/edr-api/types.d.ts +2 -2
- package/src/lib/api/edr-api/utils.d.ts +2 -2
- package/src/lib/components/EDRFetchAndParse.stories.d.ts +1 -1
- package/src/lib/components/MenuBar/LocationsMenu.d.ts +2 -2
- package/src/lib/components/MenuBar/LocationsMenuConnect.d.ts +1 -1
- package/src/lib/components/MenuBar/MenuBar.d.ts +1 -0
- package/src/lib/components/MenuBar/MenuBar.stories.d.ts +1 -1
- package/src/lib/components/MenuBar/MenuBarConnect.d.ts +1 -1
- package/src/lib/components/MenuBar/SoundingsSourceDialogConnect.d.ts +1 -1
- package/src/lib/components/MenuBar/SoundingsSourceMenu.d.ts +2 -2
- package/src/lib/components/Providers/Providers.d.ts +1 -1
- package/src/lib/components/Soundings/DiagramTypeButton.d.ts +1 -1
- package/src/lib/components/Soundings/SharedMouseProvider.spec.d.ts +1 -0
- package/src/lib/components/Soundings/SharedMouseYProvider.d.ts +13 -0
- package/src/lib/components/Soundings/SortableAccordions.d.ts +1 -1
- package/src/lib/components/Soundings/Soundings.d.ts +2 -2
- package/src/lib/components/Soundings/SoundingsConnect.d.ts +1 -1
- package/src/lib/components/Soundings/SoundingsConnect.stories.d.ts +1 -1
- package/src/lib/components/Soundings/SoundingsLegend.d.ts +1 -1
- package/src/lib/components/Soundings/WindBarbs.d.ts +3 -3
- package/src/lib/components/Soundings/animateResizeTransform.d.ts +2 -2
- package/src/lib/components/Soundings/drawUtils.d.ts +3 -3
- package/src/lib/components/Soundings/types.d.ts +2 -2
- package/src/lib/components/SoundingsAccordion/SoundingsAccordionStories.stories.d.ts +1 -1
- package/src/lib/components/SoundingsManager/SoundingsManager.d.ts +8 -0
- package/src/lib/components/SoundingsManager/SoundingsManager.spec.d.ts +1 -0
- package/src/lib/components/SoundingsManager/SoundingsManagerConnect.d.ts +1 -0
- package/src/lib/components/SoundingsTimeSlider/SoundingsTimeSlider.stories.d.ts +1 -1
- package/src/lib/components/SoundingsTooltip/utils.d.ts +2 -2
- package/src/lib/components/StaticLines/drawDryAdiabats.d.ts +2 -2
- package/src/lib/components/StaticLines/drawIsobars.d.ts +2 -2
- package/src/lib/components/StaticLines/drawIsohumes.d.ts +2 -2
- package/src/lib/components/StaticLines/drawIsotherms.d.ts +2 -2
- package/src/lib/components/StaticLines/drawMoistAdiabats.d.ts +2 -2
- package/src/lib/components/StaticLines/utils.d.ts +2 -2
- package/src/lib/components/WindBarbs/utils.d.ts +3 -3
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/store/reducer.d.ts +2 -2
- package/src/lib/store/selectors.d.ts +1 -1
- package/src/lib/store/store.d.ts +3 -3
- package/src/lib/utils/i18n.d.ts +1 -1
- package/src/lib/utils/soundingsLookUp.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/soundings",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.5.1",
|
|
4
4
|
"description": "GeoWeb soundings library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,24 +8,24 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/api": "14.
|
|
11
|
+
"@opengeoweb/api": "14.5.1",
|
|
12
12
|
"@tanstack/react-query": "^5.85.5",
|
|
13
13
|
"react": "^18.3.1",
|
|
14
14
|
"d3": "^7.9.0",
|
|
15
15
|
"react-i18next": "^15.1.1",
|
|
16
16
|
"i18next": "^25.0.1",
|
|
17
|
-
"@opengeoweb/shared": "14.
|
|
17
|
+
"@opengeoweb/shared": "14.5.1",
|
|
18
18
|
"@mui/material": "^7.0.1",
|
|
19
|
-
"@opengeoweb/store": "14.
|
|
19
|
+
"@opengeoweb/store": "14.5.1",
|
|
20
20
|
"react-redux": "^9.2.0",
|
|
21
|
-
"@opengeoweb/theme": "14.
|
|
21
|
+
"@opengeoweb/theme": "14.5.1",
|
|
22
22
|
"@reduxjs/toolkit": "^2.6.1",
|
|
23
|
-
"@opengeoweb/time-slider": "14.
|
|
23
|
+
"@opengeoweb/time-slider": "14.5.1",
|
|
24
24
|
"react-window": "^1.8.10",
|
|
25
|
-
"@opengeoweb/webmap": "14.
|
|
25
|
+
"@opengeoweb/webmap": "14.5.1",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
27
27
|
"@types/geojson": "^7946.0.14",
|
|
28
|
-
"@opengeoweb/webmap-react": "14.
|
|
28
|
+
"@opengeoweb/webmap-react": "14.5.1",
|
|
29
29
|
"react-resizable-layout": "^0.7.3",
|
|
30
30
|
"react-sortablejs": "^6.1.4"
|
|
31
31
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Coverage, CoverageCollection, VerticalProfileDomain } from '@opengeoweb/shared';
|
|
2
|
-
import { CollectionDetails, LocationsResponseFromBE, SoundingsInstances } from './types';
|
|
1
|
+
import type { Coverage, CoverageCollection, VerticalProfileDomain } from '@opengeoweb/shared';
|
|
2
|
+
import type { CollectionDetails, LocationsResponseFromBE, SoundingsInstances } from './types';
|
|
3
3
|
export declare const getCollectionLocations: (collectionId: string, baseUrl: string) => Promise<LocationsResponseFromBE>;
|
|
4
4
|
export declare const getCollectionInstances: (collectionId: string, baseUrl: string) => Promise<SoundingsInstances>;
|
|
5
5
|
export declare const getCollectionDetails: (collectionId: string, baseUrl: string) => Promise<CollectionDetails>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SoundingsCollection } from '@opengeoweb/shared';
|
|
2
|
-
import { SoundingFeature } from './types';
|
|
3
|
-
import {
|
|
4
|
-
import { SoundingsCollectionsWithInstances } from '../../components/Soundings/types';
|
|
5
|
-
import {
|
|
1
|
+
import type { SoundingsCollection } from '@opengeoweb/shared';
|
|
2
|
+
import type { SoundingFeature } from './types';
|
|
3
|
+
import type { ServiceWithLocations } from '../../components/MenuBar/LocationsMenu';
|
|
4
|
+
import type { SoundingsCollectionsWithInstances } from '../../components/Soundings/types';
|
|
5
|
+
import type { Coordinates, SourceType } from '../../store/types';
|
|
6
6
|
export declare const sortSoundingFeatures: (data: SoundingFeature[]) => SoundingFeature[];
|
|
7
7
|
export declare const defaultParameterMappings: {
|
|
8
8
|
temperature: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Geometry } from 'geojson';
|
|
2
|
-
import { EDRInstance, EdrParameter } from '@opengeoweb/shared';
|
|
1
|
+
import type { Geometry } from 'geojson';
|
|
2
|
+
import type { EDRInstance, EdrParameter } from '@opengeoweb/shared';
|
|
3
3
|
export interface FeaturesFromBE {
|
|
4
4
|
id: string;
|
|
5
5
|
type: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Coverage, CoverageCollection, VerticalProfileDomain } from '@opengeoweb/shared';
|
|
2
|
-
import { CollectionDetails, SoundingFeature, SoundingsInstance } from './types';
|
|
1
|
+
import type { Coverage, CoverageCollection, VerticalProfileDomain } from '@opengeoweb/shared';
|
|
2
|
+
import type { CollectionDetails, SoundingFeature, SoundingsInstance } from './types';
|
|
3
3
|
export declare function parseCoverageCollection(response: CoverageCollection<VerticalProfileDomain> | Coverage<VerticalProfileDomain>, parameterMappings: Record<string, string>): SoundingFeature[];
|
|
4
4
|
/**
|
|
5
5
|
* Parse duration with repeats
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react/*';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
|
3
3
|
import { getEdrCollectionForLocation, getEdrCollectionForPosition } from '../api/edr-api/api';
|
|
4
4
|
interface FetchVerticalProfileProps {
|
|
5
5
|
fetchRawDataCall: typeof getEdrCollectionForLocation | typeof getEdrCollectionForPosition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LocationsResponseFromBE } from '../../api/edr-api/types';
|
|
2
|
-
import { Coordinates } from '../../store/types';
|
|
1
|
+
import type { LocationsResponseFromBE } from '../../api/edr-api/types';
|
|
2
|
+
import type { Coordinates } from '../../store/types';
|
|
3
3
|
export type ServiceWithLocations = LocationsResponseFromBE & {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SourceSelection } from '../../store/types';
|
|
3
|
+
import type { SoundingsCollectionsWithInstances } from '../Soundings/types';
|
|
4
4
|
interface SoundingsSourceMenuProps {
|
|
5
5
|
soundingsCollections: SoundingsCollectionsWithInstances[] | undefined;
|
|
6
6
|
isOpen?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SoundingDiagramType } from '../../api/edr-api/types';
|
|
2
|
+
import type { SoundingDiagramType } from '../../api/edr-api/types';
|
|
3
3
|
interface DiagramTypeButtonProps {
|
|
4
4
|
diagramType: SoundingDiagramType;
|
|
5
5
|
setDiagramType: (diagramType: SoundingDiagramType) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface MouseYCtx {
|
|
3
|
+
clientY: number | null;
|
|
4
|
+
}
|
|
5
|
+
export declare const useSharedMouseY: () => MouseYCtx;
|
|
6
|
+
/**
|
|
7
|
+
* Wraps the area containing Soundings + WindBarbs so both can react
|
|
8
|
+
* to the same vertical mouse position (X ignored).
|
|
9
|
+
*/
|
|
10
|
+
export declare const SharedMouseYProvider: React.FC<{
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Margin } from './drawUtils';
|
|
3
|
-
import {
|
|
2
|
+
import type { Margin } from './drawUtils';
|
|
3
|
+
import type { SoundingFeature, SoundingDiagramType } from '../../api/edr-api/types';
|
|
4
4
|
export interface SoundingProps {
|
|
5
5
|
d3GraphId: string;
|
|
6
6
|
data: SoundingFeature[][];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SourceType } from '../../store/types';
|
|
2
|
+
import type { SourceType } from '../../store/types';
|
|
3
3
|
export declare const getLegendTitle: (source: SourceType) => string;
|
|
4
4
|
interface SoundingsLegendProps {
|
|
5
5
|
sourceSelections: SourceType[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Margin } from './drawUtils';
|
|
3
|
-
import { SoundingDiagramType, SoundingFeature } from '../../api/edr-api/types';
|
|
2
|
+
import type { Margin } from './drawUtils';
|
|
3
|
+
import type { SoundingDiagramType, SoundingFeature } from '../../api/edr-api/types';
|
|
4
4
|
export interface WindBarbsProps {
|
|
5
5
|
d3GraphId: string;
|
|
6
6
|
data: SoundingFeature[][];
|
|
7
7
|
svgDimensions: {
|
|
8
8
|
width: number;
|
|
9
9
|
height: number;
|
|
10
|
-
margin
|
|
10
|
+
margin: Margin;
|
|
11
11
|
};
|
|
12
12
|
showTooltip?: boolean;
|
|
13
13
|
diagramType?: SoundingDiagramType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import type * as d3 from 'd3';
|
|
1
2
|
import type { MutableRefObject } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { Margin } from './drawUtils';
|
|
3
|
+
import type { Margin } from './drawUtils';
|
|
4
4
|
export declare const animateResizeTransform: (svg: d3.Selection<SVGElement, unknown, HTMLElement, unknown>, marginLocal: Margin, innerHeight: number, prevInnerHeightRef: MutableRefObject<number | null>) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as d3 from 'd3';
|
|
2
|
-
import { i18n, TFunction } from 'i18next';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import type { i18n, TFunction } from 'i18next';
|
|
3
|
+
import type { ScalesType } from './types';
|
|
4
|
+
import type { SoundingDiagramType } from '../../api/edr-api/types';
|
|
5
5
|
export declare const SOUNDING_COLORS: string[];
|
|
6
6
|
export interface Margin {
|
|
7
7
|
top: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SoundingsCollection } from '@opengeoweb/shared';
|
|
2
|
-
import { SoundingsInstance } from '../../api/edr-api/types';
|
|
1
|
+
import type { SoundingsCollection } from '@opengeoweb/shared';
|
|
2
|
+
import type { SoundingsInstance } from '../../api/edr-api/types';
|
|
3
3
|
export interface SoundingsCollectionsWithInstances extends SoundingsCollection {
|
|
4
4
|
instances: SoundingsInstance[];
|
|
5
5
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface SoundingsManagerProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
onMouseDown: () => void;
|
|
5
|
+
order: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const SoundingsManager: ({ isOpen, onClose, onMouseDown, order, }: SoundingsManagerProps) => React.ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SoundingsManagerConnect: () => React.ReactElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as d3 from 'd3';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SoundingDiagramType, SoundingFeature } from '../../api/edr-api/types';
|
|
3
|
+
import type { Margin } from '../Soundings/drawUtils';
|
|
4
4
|
interface DrawSoundingsTooltipData {
|
|
5
5
|
pressureData: number[];
|
|
6
6
|
interpolatePressure: (value: number) => number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as d3 from 'd3';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SoundingDiagramType } from '../../api/edr-api/types';
|
|
3
|
+
import type { ScalesType } from '../Soundings/types';
|
|
4
4
|
interface DrawDryAdiabatsProps {
|
|
5
5
|
staticPressureArray: number[];
|
|
6
6
|
height: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as d3 from 'd3';
|
|
2
|
-
import { SoundingDiagramType } from '../../api/edr-api/types';
|
|
3
|
-
import { ScalesType } from '../Soundings/types';
|
|
2
|
+
import type { SoundingDiagramType } from '../../api/edr-api/types';
|
|
3
|
+
import type { ScalesType } from '../Soundings/types';
|
|
4
4
|
export declare const isobarValues: number[];
|
|
5
5
|
interface DrawIsobarsProps {
|
|
6
6
|
diagramType: SoundingDiagramType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as d3 from 'd3';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SoundingDiagramType } from '../../api/edr-api/types';
|
|
3
|
+
import type { ScalesType } from '../Soundings/types';
|
|
4
4
|
interface DrawIsohumesProps {
|
|
5
5
|
staticPressureArray: number[];
|
|
6
6
|
height: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as d3 from 'd3';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SoundingDiagramType } from '../../api/edr-api/types';
|
|
3
|
+
import type { ScalesType } from '../Soundings/types';
|
|
4
4
|
interface DrawIsothermsProps {
|
|
5
5
|
staticPressureArray: number[];
|
|
6
6
|
height: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as d3 from 'd3';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SoundingDiagramType } from '../../api/edr-api/types';
|
|
3
|
+
import type { ScalesType } from '../Soundings/types';
|
|
4
4
|
interface DrawMoistAdiabatsProps {
|
|
5
5
|
staticPressureArray: number[];
|
|
6
6
|
minTemperature: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SoundingDiagramType } from '../../api/edr-api/types';
|
|
2
|
-
import { ScalesType } from '../Soundings/types';
|
|
1
|
+
import type { SoundingDiagramType } from '../../api/edr-api/types';
|
|
2
|
+
import type { ScalesType } from '../Soundings/types';
|
|
3
3
|
interface DrawStaticLinesProps {
|
|
4
4
|
diagramType: SoundingDiagramType;
|
|
5
5
|
dp: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as d3 from 'd3';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Margin } from '../Soundings/drawUtils';
|
|
4
|
-
import { ScalesType } from '../Soundings/types';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { Margin } from '../Soundings/drawUtils';
|
|
4
|
+
import type { ScalesType } from '../Soundings/types';
|
|
5
5
|
export interface WindDataType {
|
|
6
6
|
pressure: number;
|
|
7
7
|
windSpeed: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { SoundingsStore, UpdateLocationPayload, UpdateSourcePayload, UpdateTimePayload } from './types';
|
|
1
|
+
import type { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { SoundingsStore, UpdateLocationPayload, UpdateSourcePayload, UpdateTimePayload } from './types';
|
|
3
3
|
export declare const initialSoundingsState: SoundingsStore;
|
|
4
4
|
export declare const soundingsReducer: import("redux").Reducer<SoundingsStore>, soundingsActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
5
5
|
updateSelectedSource: (draft: Draft<SoundingsStore>, payloadAction: PayloadAction<UpdateSourcePayload>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SoundingsModuleState, SoundingsStore, SourceSelection, SourceType } from './types';
|
|
1
|
+
import type { SoundingsModuleState, SoundingsStore, SourceSelection, SourceType } from './types';
|
|
2
2
|
export declare const getSourceSelections: ((state: SoundingsModuleState) => Record<string, SourceSelection>) & {
|
|
3
3
|
clearCache: () => void;
|
|
4
4
|
resultsCount: () => number;
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Store } from '@reduxjs/toolkit';
|
|
2
|
-
import { UIModuleState, WebMapStateModuleState } from '@opengeoweb/store';
|
|
3
|
-
import { SoundingsModuleState } from './types';
|
|
1
|
+
import type { Store } from '@reduxjs/toolkit';
|
|
2
|
+
import type { UIModuleState, WebMapStateModuleState } from '@opengeoweb/store';
|
|
3
|
+
import type { SoundingsModuleState } from './types';
|
|
4
4
|
export declare const soundingsReducersMap: {
|
|
5
5
|
webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState>;
|
|
6
6
|
services: import("redux").Reducer<import("dist/libs/store/src/store/map/types").ServiceState>;
|
package/src/lib/utils/i18n.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i18n from 'i18next';
|
|
2
|
-
import { UseTranslationResponse } from 'react-i18next';
|
|
2
|
+
import type { UseTranslationResponse } from 'react-i18next';
|
|
3
3
|
export declare const SOUNDINGS_NAMESPACE = "soundings";
|
|
4
4
|
export declare const initSoundingsI18n: () => void;
|
|
5
5
|
export declare const translateInTestsAndStories: (key: string, params?: Record<string, string | number> | undefined) => string;
|