@opengeoweb/warnings 14.3.0 → 14.5.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.
Files changed (92) hide show
  1. package/index.esm.js +7719 -6955
  2. package/package.json +12 -12
  3. package/src/index.d.ts +1 -1
  4. package/src/lib/Warnings.stories.d.ts +1 -10
  5. package/src/lib/api/api-utils.d.ts +1 -1
  6. package/src/lib/api/aviation-api/api.d.ts +3 -3
  7. package/src/lib/api/aviation-api/hooks.d.ts +1 -1
  8. package/src/lib/api/aviation-api/queryOptions.d.ts +2 -2
  9. package/src/lib/api/warning-api/api.d.ts +5 -5
  10. package/src/lib/api/warning-api/hooks.d.ts +6 -5
  11. package/src/lib/components/AreaObjectLoader/AreaObjectFilter.d.ts +1 -1
  12. package/src/lib/components/AreaObjectLoader/AreaObjectLoader.d.ts +6 -6
  13. package/src/lib/components/AreaObjectLoader/AreasObjects.d.ts +5 -4
  14. package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +4 -4
  15. package/src/lib/components/DrawingTool/DrawingToolConnect.d.ts +3 -3
  16. package/src/lib/components/DrawingTool/DrawingToolDialog.d.ts +3 -3
  17. package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.d.ts +2 -2
  18. package/src/lib/components/DrawingTool/useObjectDrawDialogAction.d.ts +3 -3
  19. package/src/lib/components/DrawingToolForm/DrawingToolForm.d.ts +4 -4
  20. package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.d.ts +1 -1
  21. package/src/lib/components/DrawingToolForm/DrawingToolFormContents.d.ts +3 -3
  22. package/src/lib/components/FilterList/ExpandableFilterChip.stories.d.ts +4 -3
  23. package/src/lib/components/FilterList/filter-styles.d.ts +1 -1
  24. package/src/lib/components/MaritimeWarningsForm/AreaList/AreaList.d.ts +1 -1
  25. package/src/lib/components/MaritimeWarningsForm/AssignedAreas/AssignedAreas.d.ts +1 -1
  26. package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsAvatar.d.ts +2 -2
  27. package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsForm.d.ts +3 -3
  28. package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsForm.stories.d.ts +1 -1
  29. package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsFormConnect.d.ts +1 -1
  30. package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsFormConnect.stories.d.ts +2 -2
  31. package/src/lib/components/MaritimeWarningsForm/WarningList/WarningList.d.ts +1 -1
  32. package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListItem.spec.d.ts +1 -0
  33. package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListSelect.d.ts +4 -4
  34. package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListSelect.spec.d.ts +1 -0
  35. package/src/lib/components/MaritimeWarningsForm/WarningList/WindForceSelect.spec.d.ts +1 -0
  36. package/src/lib/components/MaritimeWarningsForm/testUtils.d.ts +1 -1
  37. package/src/lib/components/MaritimeWarningsForm/useConfirmDeleteDialog.d.ts +2 -2
  38. package/src/lib/components/MaritimeWarningsForm/useFilterChipSelect.d.ts +1 -1
  39. package/src/lib/components/MaritimeWarningsForm/useMaritimeWarningsFormState.d.ts +1 -1
  40. package/src/lib/components/MaritimeWarningsForm/utils.d.ts +4 -4
  41. package/src/lib/components/ObjectManager/ConfirmDeleteDialog.d.ts +1 -1
  42. package/src/lib/components/ObjectManager/ObjectManager.d.ts +4 -4
  43. package/src/lib/components/ObjectManager/ObjectManager.stories.d.ts +1 -1
  44. package/src/lib/components/ObjectManager/ObjectManagerConnect.d.ts +1 -1
  45. package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.d.ts +1 -1
  46. package/src/lib/components/ObjectManager/Objects.d.ts +2 -2
  47. package/src/lib/components/Providers/Providers.d.ts +3 -3
  48. package/src/lib/components/PublicWarningList/ConfirmWarningDialog.d.ts +1 -1
  49. package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.d.ts +1 -1
  50. package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.stories.d.ts +1 -1
  51. package/src/lib/components/PublicWarningList/PublicWarningList.d.ts +2 -0
  52. package/src/lib/components/PublicWarningList/PublicWarningList.stories.d.ts +4 -0
  53. package/src/lib/components/PublicWarningList/PublicWarningListConnect.d.ts +0 -1
  54. package/src/lib/components/PublicWarningList/WarningListColumnContent.d.ts +1 -1
  55. package/src/lib/components/PublicWarningList/WarningListHeaderContent.d.ts +1 -1
  56. package/src/lib/components/PublicWarningList/WarningListItem.d.ts +3 -3
  57. package/src/lib/components/PublicWarningList/WarningListItemMenu.d.ts +4 -3
  58. package/src/lib/components/PublicWarningList/WarningListItemSeperator.d.ts +2 -2
  59. package/src/lib/components/PublicWarningsForm/LevelField/LevelField.d.ts +3 -3
  60. package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.d.ts +2 -2
  61. package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.d.ts +1 -1
  62. package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +10 -9
  63. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.d.ts +4 -4
  64. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.stories.d.ts +1 -1
  65. package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnectErrors.stories.d.ts +9 -1
  66. package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.d.ts +2 -2
  67. package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.d.ts +2 -2
  68. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.d.ts +5 -5
  69. package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.d.ts +4 -3
  70. package/src/lib/components/PublicWarningsFormDialog/WarningsAvatar.d.ts +2 -2
  71. package/src/lib/components/WarningsMapView/WarningsMapView.d.ts +3 -3
  72. package/src/lib/store/publicWarningForm/listener.d.ts +1 -1
  73. package/src/lib/store/publicWarningForm/reducer.d.ts +6 -4
  74. package/src/lib/store/publicWarningForm/selectors.d.ts +2 -2
  75. package/src/lib/store/publicWarningForm/types.d.ts +1 -1
  76. package/src/lib/store/publicWarnings/listener.d.ts +1 -1
  77. package/src/lib/store/publicWarnings/reducer.d.ts +4 -4
  78. package/src/lib/store/publicWarnings/selectors.d.ts +3 -3
  79. package/src/lib/store/publicWarnings/types.d.ts +3 -3
  80. package/src/lib/store/store.d.ts +4 -4
  81. package/src/lib/store/types.d.ts +4 -4
  82. package/src/lib/store/warningsDrawings/reducer.d.ts +2 -2
  83. package/src/lib/store/warningsDrawings/selectors.d.ts +2 -2
  84. package/src/lib/store/warningsDrawings/types.d.ts +1 -1
  85. package/src/lib/storybookUtils/defaultStorySettings.d.ts +1 -1
  86. package/src/lib/storybookUtils/storyComponents.d.ts +0 -2
  87. package/src/lib/storybookUtils/testUtils.d.ts +2 -2
  88. package/src/lib/utils/fakeApi/index.d.ts +3 -3
  89. package/src/lib/utils/fakeSigmetAirmet.d.ts +1 -1
  90. package/src/lib/utils/i18n.d.ts +1 -1
  91. package/src/lib/utils/sig-airmet-util.d.ts +5 -3
  92. package/src/lib/utils/warningUtils.d.ts +4 -3
@@ -1,7 +1,8 @@
1
- import { MenuItemType } from '@opengeoweb/shared';
1
+ import type { TFunction } from 'i18next';
2
+ import type { MenuItemType } from '@opengeoweb/shared';
2
3
  import { ProductAction } from '@opengeoweb/sigmet-airmet';
3
- import { TFunction } from 'i18next';
4
- import { MaritimeWarning, MaritimeWarningAction, Warning } from '../../store/publicWarningForm/types';
4
+ import type { MaritimeWarning, Warning } from '../../store/publicWarningForm/types';
5
+ import { MaritimeWarningAction } from '../../store/publicWarningForm/types';
5
6
  export interface WarningListItemActions {
6
7
  onEditWarning?: (warning: Warning) => void;
7
8
  onDeleteWarning?: (warningId: string, warningEditor?: string) => void;
@@ -1,6 +1,6 @@
1
- import { ListItemProps } from '@mui/material';
1
+ import type { ListItemProps } from '@mui/material';
2
2
  import React from 'react';
3
- import { PublicWarningStatus } from '../../store/publicWarningForm/types';
3
+ import type { PublicWarningStatus } from '../../store/publicWarningForm/types';
4
4
  import type { TimeFilter } from '../FilterList/filter-utils';
5
5
  declare const WarningListItemSeperator: React.FC<{
6
6
  totalWarnings: number;
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- import { FilterTranslation } from '../../../store/publicWarnings/types';
1
+ import React from 'react';
2
+ import type { FilterTranslation } from '../../../store/publicWarnings/types';
3
3
  export interface ColorDefinition {
4
4
  color: string;
5
- textColor: string;
5
+ textColor?: string;
6
6
  borderColor: string;
7
7
  }
8
8
  export interface LevelDetails extends FilterTranslation, ColorDefinition {
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { FilterTranslation } from '../../../store/publicWarnings/types';
1
+ import React from 'react';
2
+ import type { FilterTranslation } from '../../../store/publicWarnings/types';
3
3
  export declare const getWarningPhenomenaIcon: (key: string) => React.ReactElement | undefined;
4
4
  export declare const getAviationPhenomenaIcon: (key: string) => React.ReactElement | undefined;
5
5
  export declare const warningPhenomena: FilterTranslation[];
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export declare const probablityOptions: number[];
3
3
  export declare const defaultProbability = 30;
4
4
  export declare const ProbabilityField: React.FC<{
@@ -1,12 +1,12 @@
1
- import { AviationProduct, FormMode, ProductStatus } from '@opengeoweb/sigmet-airmet';
2
- import * as React from 'react';
3
- import { MapPreset } from '@opengeoweb/store';
4
- import { FeatureCollection, GeoJsonProperties, Geometry } from 'geojson';
5
- import { AirmetFromBackend, SigmetFromBackend } from '@opengeoweb/api';
6
- import { FormError } from '../../store/publicWarningForm/reducer';
7
- import { Area, PublicWarningDetail, WarningType } from '../../store/publicWarningForm/types';
8
- import { BaseDrawingListItem, DrawingListItem } from '../../store/warningsDrawings/types';
9
- import { WarningLevel } from './LevelField';
1
+ import type { FeatureCollection, GeoJsonProperties, Geometry } from 'geojson';
2
+ import React from 'react';
3
+ import type { AirmetFromBackend, SigmetFromBackend } from '@opengeoweb/api';
4
+ import type { AviationProduct, FormMode, ProductStatus } from '@opengeoweb/sigmet-airmet';
5
+ import type { MapPreset } from '@opengeoweb/store';
6
+ import type { FormError } from '../../store/publicWarningForm/reducer';
7
+ import type { Area, PublicWarningDetail, WarningType } from '../../store/publicWarningForm/types';
8
+ import type { BaseDrawingListItem, DrawingListItem } from '../../store/warningsDrawings/types';
9
+ import type { WarningLevel } from './LevelField';
10
10
  export declare const useScrollTopOnError: (error: FormError) => React.RefObject<HTMLDivElement>;
11
11
  export declare const getEmptyPublicWarning: () => PublicWarningDetail;
12
12
  export declare const getFormData: (publicWarningsDetails: PublicWarningDetail | undefined, object?: DrawingListItem) => FormData;
@@ -37,6 +37,7 @@ export interface FormProps {
37
37
  onSetViewModeResetArea?: (area: Area[]) => void;
38
38
  storedStartGeoJSON?: FeatureCollection<Geometry, GeoJsonProperties>;
39
39
  storedEndGeoJSON?: FeatureCollection<Geometry, GeoJsonProperties>;
40
+ setWarningLevel?: (level: WarningLevel | '') => void;
40
41
  }
41
42
  export declare function warningLevelFeatureColors(level: WarningLevel | undefined, geoJSON: FeatureCollection<Geometry, GeoJsonProperties> | undefined, // Allow undefined
42
43
  isAviationWarning?: boolean): FeatureCollection<Geometry, GeoJsonProperties>;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { AviationProduct, FormMode } from '@opengeoweb/sigmet-airmet';
3
- import { MapPreset } from '@opengeoweb/store';
4
- import { WarningType } from '../../store/publicWarningForm/types';
1
+ import React from 'react';
2
+ import type { AviationProduct, FormMode } from '@opengeoweb/sigmet-airmet';
3
+ import type { MapPreset } from '@opengeoweb/store';
4
+ import type { WarningType } from '../../store/publicWarningForm/types';
5
5
  export interface PublicWarningsFormConnectProps {
6
6
  editor?: string;
7
7
  selectedAviationProduct?: AviationProduct & {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
4
  tags: string[];
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
4
  tags: string[];
@@ -14,3 +14,11 @@ export declare const SaveAndPublishError: {
14
14
  };
15
15
  };
16
16
  };
17
+ export declare const SigmetPublishConflict409: {
18
+ (): React.ReactElement;
19
+ parameters: {
20
+ msw: {
21
+ handlers: import("msw").HttpHandler[];
22
+ };
23
+ };
24
+ };
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { TFunction } from 'i18next';
1
+ import type { TFunction } from 'i18next';
2
+ import React from 'react';
3
3
  export declare const VALID_FROM_MAX_HOURS_AFTER_CURRENT = 192;
4
4
  export declare const VALID_UNTIL_DEFAULT_OFFSET = 6;
5
5
  export declare const isValueBeforeCurrentTime: (value: string, t: TFunction) => boolean | string;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { TFunction } from 'i18next';
1
+ import type { TFunction } from 'i18next';
2
+ import React from 'react';
3
3
  export declare const VALID_UNTIL_MAX_HOURS_AFTER_CURRENT = 192;
4
4
  export declare const VALID_UNTIL_MIN_HOURS_AFTER_VALID_FROM = 1;
5
5
  export declare const isValueBeforeCurrentTime: (value: string, t: TFunction) => boolean | string;
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- import { Position, DraggableSize, HeaderSize } from '@opengeoweb/shared';
3
- import { AviationProduct } from '@opengeoweb/sigmet-airmet';
4
- import { uiTypes } from '@opengeoweb/store';
5
- import { WarningType } from '../../store/publicWarningForm/types';
1
+ import React from 'react';
2
+ import type { Position, DraggableSize, HeaderSize } from '@opengeoweb/shared';
3
+ import type { AviationProduct } from '@opengeoweb/sigmet-airmet';
4
+ import type { uiTypes } from '@opengeoweb/store';
5
+ import type { WarningType } from '../../store/publicWarningForm/types';
6
6
  export interface PublicWarningsFormDialogProps {
7
7
  bounds?: string;
8
8
  onClose: () => void;
@@ -1,7 +1,8 @@
1
+ import type { TFunction } from 'i18next';
1
2
  import React from 'react';
2
- import { uiTypes, MapPreset } from '@opengeoweb/store';
3
- import { ConfirmationOptions, Position } from '@opengeoweb/shared';
4
- import { TFunction } from 'i18next';
3
+ import type { ConfirmationOptions, Position } from '@opengeoweb/shared';
4
+ import { uiTypes } from '@opengeoweb/store';
5
+ import type { MapPreset } from '@opengeoweb/store';
5
6
  export declare const warningFormConfirmationOptions: (t: TFunction) => ConfirmationOptions;
6
7
  export declare const isAlreadyEdited: (publicWarningEditor: string | undefined, username: string | undefined) => boolean;
7
8
  export declare const PublicWarningsFormDialogConnect: React.FC<{
@@ -1,5 +1,5 @@
1
- import { TooltipProps } from '@mui/material';
2
- import * as React from 'react';
1
+ import type { TooltipProps } from '@mui/material';
2
+ import React from 'react';
3
3
  export interface WarningAvatarProps {
4
4
  editor: string;
5
5
  status?: string;
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
- import { FeatureCollection } from 'geojson';
3
- import { MapPreset } from '@opengeoweb/store';
1
+ import type { FeatureCollection } from 'geojson';
2
+ import React from 'react';
3
+ import type { MapPreset } from '@opengeoweb/store';
4
4
  interface WarningsMapViewProps {
5
5
  geojsonFeature?: FeatureCollection | undefined;
6
6
  defaultMapPreset?: MapPreset;
@@ -1,2 +1,2 @@
1
- import { WarningModuleStore } from '../types';
1
+ import type { WarningModuleStore } from '../types';
2
2
  export declare const publicWarningFormListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("redux-thunk").ThunkDispatch<WarningModuleStore, unknown, import("redux").UnknownAction>, unknown>;
@@ -1,7 +1,8 @@
1
- import { AlertColor } from '@mui/material';
2
- import { Draft, PayloadAction } from '@reduxjs/toolkit';
3
- import { DrawingListItem } from '../warningsDrawings/types';
4
- import { Area, Warning, WarningType } from './types';
1
+ import type { AlertColor } from '@mui/material';
2
+ import type { Draft, PayloadAction } from '@reduxjs/toolkit';
3
+ import type { Area, Warning, WarningType } from './types';
4
+ import type { WarningLevel } from '../../components/PublicWarningsForm/LevelField';
5
+ import type { DrawingListItem } from '../warningsDrawings/types';
5
6
  export type FormAction = '' | 'saving' | 'publishing' | 'readonly' | 'edit' | 'amending' | 'cancel';
6
7
  export interface FormError {
7
8
  severity?: AlertColor;
@@ -48,4 +49,5 @@ export declare const publicWarningFormReducer: import("redux").Reducer<WarningFo
48
49
  warningId: string;
49
50
  }>) => void;
50
51
  setSelectedWarningId: (draft: Draft<WarningFormState>, action: PayloadAction<string>) => void;
52
+ setWarningLevel: (draft: Draft<WarningFormState>, action: PayloadAction<WarningLevel | "">) => void;
51
53
  }, "publicWarningForm">;
@@ -1,5 +1,5 @@
1
- import { WarningModuleStore } from '../types';
2
- import { WarningFormState } from './reducer';
1
+ import type { WarningModuleStore } from '../types';
2
+ import type { WarningFormState } from './reducer';
3
3
  export declare const selectPublicWarningState: (store: WarningModuleStore) => WarningFormState;
4
4
  export declare const getPublicWarningObject: ((state: WarningModuleStore) => import("../warningsDrawings/types").DrawingListItem | undefined) & {
5
5
  clearCache: () => void;
@@ -1,4 +1,4 @@
1
- import { Airmet, CancelAirmet, CancelSigmet, ProductStatus, Sigmet } from '@opengeoweb/api';
1
+ import type { Airmet, CancelAirmet, CancelSigmet, ProductStatus, Sigmet } from '@opengeoweb/api';
2
2
  export interface Area {
3
3
  objectName: string;
4
4
  geoJSON: GeoJSON.FeatureCollection;
@@ -1,3 +1,3 @@
1
- import { WarningModuleStore } from '../types';
1
+ import type { WarningModuleStore } from '../types';
2
2
  export declare const getLastUpdatedTimeFormatted: () => string;
3
3
  export declare const publicWarningsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("redux-thunk").ThunkDispatch<WarningModuleStore, unknown, import("redux").UnknownAction>, unknown>;
@@ -1,7 +1,7 @@
1
- import { Draft, PayloadAction } from '@reduxjs/toolkit';
2
- import { Warning } from '../publicWarningForm/types';
3
- import { PublicWarningsState } from './types';
4
- import { FilterState } from '../../components/FilterList/filter-hooks';
1
+ import type { Draft, PayloadAction } from '@reduxjs/toolkit';
2
+ import type { PublicWarningsState } from './types';
3
+ import type { FilterState } from '../../components/FilterList/filter-hooks';
4
+ import type { Warning } from '../publicWarningForm/types';
5
5
  export declare const publicWarningsAdapter: import("@reduxjs/toolkit").EntityAdapter<Warning, string>;
6
6
  export declare const initialState: PublicWarningsState;
7
7
  export declare const publicWarningsReducer: import("redux").Reducer<PublicWarningsState>, publicWarningActions: import("@reduxjs/toolkit").CaseReducerActions<{
@@ -1,6 +1,6 @@
1
- import { PublicWarningsState } from './types';
2
- import { WarningModuleStore } from '../types';
3
- import { FilterState } from '../../components/FilterList/filter-hooks';
1
+ import type { PublicWarningsState } from './types';
2
+ import type { FilterState } from '../../components/FilterList/filter-hooks';
3
+ import type { WarningModuleStore } from '../types';
4
4
  export declare const getPublicWarningsStore: (store: WarningModuleStore) => PublicWarningsState;
5
5
  export declare const selectAllPublicWarnings: (state: WarningModuleStore) => import("../publicWarningForm/types").Warning[];
6
6
  export declare const isPublicWarningsLoading: ((state: WarningModuleStore) => boolean) & {
@@ -1,6 +1,6 @@
1
- import { EntityState } from '@reduxjs/toolkit';
2
- import { Warning } from '../publicWarningForm/types';
3
- import { FilterState } from '../../components/FilterList/filter-hooks';
1
+ import type { EntityState } from '@reduxjs/toolkit';
2
+ import type { FilterState } from '../../components/FilterList/filter-hooks';
3
+ import type { Warning } from '../publicWarningForm/types';
4
4
  export interface FilterTranslation {
5
5
  translationKey: string;
6
6
  key: string;
@@ -1,7 +1,7 @@
1
- import { SnackbarModuleStore } from '@opengeoweb/snackbar';
2
- import { DrawtoolModuleStore, UIModuleState, WebMapStateModuleState } from '@opengeoweb/store';
3
- import { Store } from '@reduxjs/toolkit';
4
- import { WarningModuleStore } from './types';
1
+ import type { Store } from '@reduxjs/toolkit';
2
+ import type { SnackbarModuleStore } from '@opengeoweb/snackbar';
3
+ import type { DrawtoolModuleStore, UIModuleState, WebMapStateModuleState } from '@opengeoweb/store';
4
+ import type { WarningModuleStore } from './types';
5
5
  export declare const warningsReducersMap: {
6
6
  webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").WebMapState>;
7
7
  layers: import("redux").Reducer<import("dist/libs/store/src/store/map/types").LayerState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").LayerState>;
@@ -1,7 +1,7 @@
1
- import { CoreAppStore } from '@opengeoweb/store';
2
- import { DrawState } from './warningsDrawings/types';
3
- import { WarningFormState } from './publicWarningForm/reducer';
4
- import { PublicWarningsState } from './publicWarnings/types';
1
+ import type { CoreAppStore } from '@opengeoweb/store';
2
+ import type { WarningFormState } from './publicWarningForm/reducer';
3
+ import type { PublicWarningsState } from './publicWarnings/types';
4
+ import type { DrawState } from './warningsDrawings/types';
5
5
  export interface WarningModuleStore extends CoreAppStore {
6
6
  drawings?: DrawState;
7
7
  publicWarningForm?: WarningFormState;
@@ -1,5 +1,5 @@
1
- import { PayloadAction, Draft } from '@reduxjs/toolkit';
2
- import { DrawItem, DrawState, SetDrawValuesPayload, SubmitDrawValuesPayload } from './types';
1
+ import type { PayloadAction, Draft } from '@reduxjs/toolkit';
2
+ import type { DrawItem, DrawState, SetDrawValuesPayload, SubmitDrawValuesPayload } from './types';
3
3
  export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawItem, string>;
4
4
  export declare const initialState: DrawState;
5
5
  export declare const warningsDrawingsReducer: import("redux").Reducer<DrawState>, warningsDrawingsActions: import("@reduxjs/toolkit").CaseReducerActions<{
@@ -1,5 +1,5 @@
1
- import { DrawState } from './types';
2
- import { WarningModuleStore } from '../types';
1
+ import type { DrawState } from './types';
2
+ import type { WarningModuleStore } from '../types';
3
3
  export declare const getDrawStore: (store: WarningModuleStore) => DrawState;
4
4
  export declare const selectDrawByInstanceId: (state: WarningModuleStore, id: string) => {
5
5
  id: string;
@@ -1,4 +1,4 @@
1
- import { EntityState } from '@reduxjs/toolkit';
1
+ import type { EntityState } from '@reduxjs/toolkit';
2
2
  export interface DrawItem {
3
3
  id: string;
4
4
  objectName: string;
@@ -1,4 +1,4 @@
1
- import { layerTypes, mapTypes } from '@opengeoweb/store';
1
+ import type { layerTypes, mapTypes } from '@opengeoweb/store';
2
2
  export declare const initialBbox: {
3
3
  srs: "EPSG:3857";
4
4
  bbox: {
@@ -1,7 +1,5 @@
1
1
  import React from 'react';
2
- import { uiTypes } from '@opengeoweb/store';
3
2
  export declare const AppHamburgerMenu: React.FC;
4
3
  export declare const MapWithWarnings: React.FC<{
5
4
  mapId: string;
6
- dialogType?: uiTypes.DialogType;
7
5
  }>;
@@ -1,5 +1,5 @@
1
- import { Airmet, CancelAirmet, CancelSigmet, Sigmet } from '@opengeoweb/sigmet-airmet';
2
- import { PublicWarning } from '../store/publicWarningForm/types';
1
+ import type { Airmet, CancelAirmet, CancelSigmet, Sigmet } from '@opengeoweb/sigmet-airmet';
2
+ import type { PublicWarning } from '../store/publicWarningForm/types';
3
3
  export declare const testGeoJSON: GeoJSON.FeatureCollection;
4
4
  export declare function fakeErrorRequest<ReturnType>(error: string): Promise<ReturnType>;
5
5
  export declare const fakePostError = "2 validation errors for Request\nbody -> warningDetail -> phenomenon\n value is not a valid enumeration member; permitted: 'wind', 'fog', 'thunderstorm', 'snowIce', 'rain', 'highTemp', 'funnelCloud', 'lowTemp', 'coastalEvent' (type=type_error.enum; enum_values=[<PhenomenonEnum.WIND: 'wind'>, <PhenomenonEnum.FOG: 'fog'>, <PhenomenonEnum.THUNDERSTORM: 'thunderstorm'>, <PhenomenonEnum.SNOW_ICE: 'snowIce'>, <PhenomenonEnum.RAIN: 'rain'>, <PhenomenonEnum.HIGH_TEMP: 'highTemp'>, <PhenomenonEnum.FUNNEL_CLD: 'funnelCloud'>, <PhenomenonEnum.LOW_TEMP: 'lowTemp'>, <PhenomenonEnum.COASTAL_EVENT: 'coastalEvent'>])\nbody -> warningDetail -> level\n value is not a valid enumeration member; permitted: 'moderate', 'severe', 'extreme' (type=type_error.enum; enum_values=[<LevelEnum.MODERATE: 'moderate'>, <LevelEnum.SEVERE: 'severe'>, <LevelEnum.EXTREME: 'extreme'>])";
@@ -1,7 +1,7 @@
1
- import { RequestHandler } from 'msw';
2
- import { SigmetFromBackend } from '@opengeoweb/api';
3
- import type { DrawingFromBE, DrawingListItem } from '../../store/warningsDrawings/types';
1
+ import type { RequestHandler } from 'msw';
2
+ import type { SigmetFromBackend } from '@opengeoweb/api';
4
3
  import type { AirmetWarning, MaritimeWarning, PublicWarning, SigmetWarning, Warning } from '../../store/publicWarningForm/types';
4
+ import type { DrawingFromBE, DrawingListItem } from '../../store/warningsDrawings/types';
5
5
  export declare const newSigmet: SigmetFromBackend;
6
6
  declare const drawingList: DrawingListItem[];
7
7
  declare const drawingsListFullContent: DrawingFromBE[];
@@ -1,3 +1,3 @@
1
- import { SigmetFromBackend, AirmetFromBackend } from '@opengeoweb/api';
1
+ import type { SigmetFromBackend, AirmetFromBackend } from '@opengeoweb/api';
2
2
  export declare const fakeSigmetInWarningList: SigmetFromBackend[];
3
3
  export declare const fakeAirmetInWarningList: AirmetFromBackend[];
@@ -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 WARN_NAMESPACE = "warn";
4
4
  export declare const initWarnI18n: () => void;
5
5
  export declare const translateInTestsAndStories: (key: string, params?: Record<string, string | number> | undefined) => string;
@@ -1,6 +1,8 @@
1
- import { AirmetFromBackend, CancelAirmet, CancelSigmet, ProductStatus, SigmetFromBackend } from '@opengeoweb/api';
2
- import { AviationProduct, ProductConfig } from '@opengeoweb/sigmet-airmet';
3
- import { Warning, PublicWarningStatus, AviationWarningDetails, AirmetWarning, SigmetWarning } from '../store/publicWarningForm/types';
1
+ import type { AirmetFromBackend, CancelAirmet, CancelSigmet, SigmetFromBackend } from '@opengeoweb/api';
2
+ import { ProductStatus } from '@opengeoweb/api';
3
+ import type { AviationProduct, ProductConfig } from '@opengeoweb/sigmet-airmet';
4
+ import type { Warning, AviationWarningDetails, AirmetWarning, SigmetWarning } from '../store/publicWarningForm/types';
5
+ import { PublicWarningStatus } from '../store/publicWarningForm/types';
4
6
  export declare function isCancelAirmet(warningDetail: AviationWarningDetails): warningDetail is CancelAirmet;
5
7
  export declare function isCancelSigmet(warningDetail: AviationWarningDetails): warningDetail is CancelSigmet;
6
8
  export declare const flattenPublicWarning: (publicWarning: Warning) => Partial<AviationWarningDetails>;
@@ -1,6 +1,7 @@
1
- import { RefObject } from 'react';
2
- import { Warning, PublicWarningStatus } from '../store/publicWarningForm/types';
3
- import { PickedFilterState, OptionKey } from '../components/FilterList/filter-hooks';
1
+ import type { RefObject } from 'react';
2
+ import type { PickedFilterState, OptionKey } from '../components/FilterList/filter-hooks';
3
+ import { PublicWarningStatus } from '../store/publicWarningForm/types';
4
+ import type { Warning } from '../store/publicWarningForm/types';
4
5
  export declare const ERROR_NOT_FOUND = "Request failed with status code 400";
5
6
  export declare const MOCK_USERNAME = "user.name";
6
7
  interface OverflowCheckResult {