@opengeoweb/warnings 12.6.0 → 12.7.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/index.esm.js CHANGED
@@ -7,7 +7,7 @@ import { SHARED_NAMESPACE, useConfirmationDialog, dateUtils, ToggleMenu, calcula
7
7
  import { createEntityAdapter, createSlice, createSelector, createListenerMiddleware, current, combineReducers, configureStore } from '@reduxjs/toolkit';
8
8
  import { defaultBbox } from '@opengeoweb/core';
9
9
  import { FORM_FIELDS_NAMESPACE, useDraftFormHelpers, ReactHookFormSelect, ReactHookFormHiddenInput, isValidGeoJsonCoordinates, ReactHookFormTextField, ReactHookFormProvider, defaultFormOptions, errorMessages, isEmpty, ReactHookFormDateTime, isXHoursAfter, isXHoursBefore } from '@opengeoweb/form-fields';
10
- import { SA_NAMESPACE, isInstanceOfCancelSigmet, getDefaultValidFromValue, isInstanceOfCancelAirmet, getDefaultValidUntilValue, useShortTestHelpers, SigmetForm, AirmetForm, ProductAction, getConfirmationDialogCancelLabel, getConfirmationDialogButtonLabel, getConfirmationDialogContent, getConfirmationDialogTitle, isVAPhenomenon, CancelSigmetVolcanicMovements, createAirmetPostParameter, createSigmetPostParameter, prepareCancelSigmet, getProductFormMode } from '@opengeoweb/sigmet-airmet';
10
+ import { SA_NAMESPACE, isInstanceOfCancelSigmet, getDefaultValidFromValue, isInstanceOfCancelAirmet, getTacGeometry, getMaxPolygonPoints, getDefaultValidUntilValue, useShortTestHelpers, SigmetForm, AirmetForm, ProductAction, getConfirmationDialogCancelLabel, getConfirmationDialogButtonLabel, getConfirmationDialogContent, getConfirmationDialogTitle, isVAPhenomenon, CancelSigmetVolcanicMovements, createAirmetPostParameter, createSigmetPostParameter, prepareCancelSigmet, getProductFormMode } from '@opengeoweb/sigmet-airmet';
11
11
  import { LayerType, generateMapId } from '@opengeoweb/webmap';
12
12
  import { t } from 'i18next';
13
13
  import { useTranslation } from 'react-i18next';
@@ -2989,7 +2989,7 @@ var useMutateWarning = function useMutateWarning(snackBarMessage) {
2989
2989
  var _useAuthenticationCon2 = useAuthenticationContext(),
2990
2990
  auth = _useAuthenticationCon2.auth;
2991
2991
  var dispatch = useDispatch();
2992
- return useMutation(Object.assign({
2992
+ return useMutation({
2993
2993
  mutationFn: function mutationFn(_ref4) {
2994
2994
  var id = _ref4.id,
2995
2995
  data = _ref4.data;
@@ -3001,15 +3001,7 @@ var useMutateWarning = function useMutateWarning(snackBarMessage) {
3001
3001
  return updatePublicWarning(id, auth, data);
3002
3002
  }
3003
3003
  return postPublicWarning(auth, data);
3004
- }
3005
- }, optimisticUpdate(['public-warning-list'], queryClient, function (_, _ref5) {
3006
- var data = _ref5.data,
3007
- id = _ref5.id;
3008
- return Object.assign({}, data, {
3009
- id: id,
3010
- lastUpdatedTime: new Date().toISOString()
3011
- });
3012
- }), {
3004
+ },
3013
3005
  onError: function onError(error) {
3014
3006
  void queryClient.invalidateQueries({
3015
3007
  queryKey: ['public-warning-list']
@@ -3020,34 +3012,17 @@ var useMutateWarning = function useMutateWarning(snackBarMessage) {
3020
3012
  },
3021
3013
  onSuccess: function () {
3022
3014
  var _onSuccess2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(data, variables) {
3023
- var location, _variables$data, warningDetail, status, newId, newWarning;
3015
+ var location, warningDetail, newId, newWarning;
3024
3016
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3025
3017
  while (1) switch (_context2.prev = _context2.next) {
3026
3018
  case 0:
3019
+ _context2.next = 2;
3020
+ return queryClient.invalidateQueries({
3021
+ queryKey: ['public-warning-list']
3022
+ });
3023
+ case 2:
3027
3024
  location = data == null ? void 0 : data.get('location');
3028
- _variables$data = variables.data, warningDetail = _variables$data.warningDetail, status = _variables$data.status;
3029
- if (
3030
- // DRAFT_PUBLISHED warnings have linked_to_id to the published warning it is based on
3031
- // When publishing a DRAFT_PUBLISHED warning we need to update the published warning and delete the draft
3032
- warningDetail.linked_to_id && status === PublicWarningStatus.PUBLISHED) {
3033
- queryClient.setQueryData(['public-warning-list'], function (old) {
3034
- return old == null ? void 0 : old.reduce(function (acc, warning) {
3035
- if (warning.id === warningDetail.linked_to_id) {
3036
- return acc;
3037
- }
3038
- if (warning.id === warningDetail.id) {
3039
- return [].concat(acc, [Object.assign({}, warning, {
3040
- id: warningDetail.linked_to_id,
3041
- warningDetail: Object.assign({}, warning.warningDetail, {
3042
- id: warningDetail.linked_to_id
3043
- }),
3044
- lastUpdatedTime: new Date().toISOString()
3045
- })]);
3046
- }
3047
- return [].concat(acc, [warning]);
3048
- }, []);
3049
- });
3050
- }
3025
+ warningDetail = variables.data.warningDetail;
3051
3026
  if (location) {
3052
3027
  // When making a new warning we get it's ID from the location header
3053
3028
  newId = getIdFromUrl(location);
@@ -3059,9 +3034,6 @@ var useMutateWarning = function useMutateWarning(snackBarMessage) {
3059
3034
  domain: 'public'
3060
3035
  })
3061
3036
  });
3062
- queryClient.setQueryData(['public-warning-list'], function (old) {
3063
- return [].concat(old || [], [newWarning]);
3064
- });
3065
3037
  dispatch(publicWarningFormActions.openPublicWarningFormDialog({
3066
3038
  warning: newWarning,
3067
3039
  formState: '',
@@ -3078,7 +3050,7 @@ var useMutateWarning = function useMutateWarning(snackBarMessage) {
3078
3050
  setOpen: false
3079
3051
  }));
3080
3052
  }
3081
- case 6:
3053
+ case 7:
3082
3054
  case "end":
3083
3055
  return _context2.stop();
3084
3056
  }
@@ -3089,7 +3061,7 @@ var useMutateWarning = function useMutateWarning(snackBarMessage) {
3089
3061
  }
3090
3062
  return onSuccess;
3091
3063
  }()
3092
- }));
3064
+ });
3093
3065
  };
3094
3066
  var useMutateDeleteWarning = function useMutateDeleteWarning() {
3095
3067
  var queryClient = useQueryClient();
@@ -3097,8 +3069,8 @@ var useMutateDeleteWarning = function useMutateDeleteWarning() {
3097
3069
  var _useAuthenticationCon3 = useAuthenticationContext(),
3098
3070
  auth = _useAuthenticationCon3.auth;
3099
3071
  return useMutation({
3100
- mutationFn: function mutationFn(_ref6) {
3101
- var id = _ref6.id;
3072
+ mutationFn: function mutationFn(_ref5) {
3073
+ var id = _ref5.id;
3102
3074
  if (!auth) {
3103
3075
  throw new Error('Authentication context not found');
3104
3076
  }
@@ -3173,12 +3145,12 @@ var useMutateSaveOrUpdateDrawing = function useMutateSaveOrUpdateDrawing() {
3173
3145
  var queryClient = useQueryClient();
3174
3146
  return useMutation({
3175
3147
  mutationFn: function () {
3176
- var _mutationFn = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_ref7) {
3148
+ var _mutationFn = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_ref6) {
3177
3149
  var data, id, headers, location, newId;
3178
3150
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3179
3151
  while (1) switch (_context4.prev = _context4.next) {
3180
3152
  case 0:
3181
- data = _ref7.data, id = _ref7.id;
3153
+ data = _ref6.data, id = _ref6.id;
3182
3154
  if (auth) {
3183
3155
  _context4.next = 3;
3184
3156
  break;
@@ -3222,8 +3194,8 @@ var useMutateSaveOrUpdateDrawing = function useMutateSaveOrUpdateDrawing() {
3222
3194
  }
3223
3195
  return mutationFn;
3224
3196
  }(),
3225
- onSuccess: function onSuccess(_ref8, variables) {
3226
- var id = _ref8.id;
3197
+ onSuccess: function onSuccess(_ref7, variables) {
3198
+ var id = _ref7.id;
3227
3199
  dispatch(warningsDrawingsActions.setDrawValues({
3228
3200
  drawingInstanceId: drawingDialogType,
3229
3201
  id: String(id),
@@ -3243,12 +3215,12 @@ var useMutateDeleteDrawing = function useMutateDeleteDrawing() {
3243
3215
  var dispatch = useDispatch();
3244
3216
  return useMutation({
3245
3217
  mutationFn: function () {
3246
- var _mutationFn2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(_ref9) {
3218
+ var _mutationFn2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(_ref8) {
3247
3219
  var drawingId;
3248
3220
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
3249
3221
  while (1) switch (_context5.prev = _context5.next) {
3250
3222
  case 0:
3251
- drawingId = _ref9.drawingId;
3223
+ drawingId = _ref8.drawingId;
3252
3224
  if (auth) {
3253
3225
  _context5.next = 3;
3254
3226
  break;
@@ -3272,8 +3244,8 @@ var useMutateDeleteDrawing = function useMutateDeleteDrawing() {
3272
3244
  }
3273
3245
  return mutationFn;
3274
3246
  }(),
3275
- onSuccess: function onSuccess(_, _ref10) {
3276
- var objectName = _ref10.objectName;
3247
+ onSuccess: function onSuccess(_, _ref9) {
3248
+ var objectName = _ref9.objectName;
3277
3249
  void queryClient.invalidateQueries({
3278
3250
  queryKey: ['drawings']
3279
3251
  });
@@ -4188,14 +4160,19 @@ var DrawingToolConnect = function DrawingToolConnect(_ref) {
4188
4160
 
4189
4161
  var WarningAvatar = function WarningAvatar(_ref) {
4190
4162
  var editor = _ref.editor,
4163
+ status = _ref.status,
4191
4164
  _ref$tooltipPlacement = _ref.tooltipPlacement,
4192
4165
  tooltipPlacement = _ref$tooltipPlacement === void 0 ? 'bottom' : _ref$tooltipPlacement;
4166
+ var effectiveStatus = status != null ? status : 'DRAFT';
4167
+ var isDraft = effectiveStatus === 'DRAFT';
4168
+ var label = isDraft ? 'Editor' : 'Author';
4193
4169
  return jsx(CustomTooltip, {
4194
- title: "Editor: " + editor,
4170
+ title: label + ": " + editor,
4195
4171
  placement: tooltipPlacement,
4196
4172
  children: jsx("span", {
4197
4173
  children: jsx(Avatar, {
4198
4174
  size: "small",
4175
+ author: !isDraft,
4199
4176
  children: getInitials(editor)
4200
4177
  })
4201
4178
  })
@@ -4336,7 +4313,8 @@ var PublicWarningsFormDialog = function PublicWarningsFormDialog(_ref) {
4336
4313
  width: '16px'
4337
4314
  },
4338
4315
  children: publicWarningEditor && jsx(WarningAvatar, {
4339
- editor: publicWarningEditor
4316
+ editor: publicWarningEditor,
4317
+ status: selectedAviationProduct == null ? void 0 : selectedAviationProduct.status
4340
4318
  })
4341
4319
  })]
4342
4320
  })
@@ -4659,16 +4637,23 @@ var flattenPublicWarning = function flattenPublicWarning(publicWarning) {
4659
4637
  rest = _objectWithoutPropertiesLoose(publicWarning, _excluded$6);
4660
4638
  return Object.assign({}, rest, sigmetAirmetDetails);
4661
4639
  };
4662
- var transformAirmetToWarningFormat = function transformAirmetToWarningFormat(apiAirmet) {
4640
+ var transformAirmetToWarningFormat = function transformAirmetToWarningFormat(apiAirmet, productConfig) {
4663
4641
  var airmet = apiAirmet.airmet;
4642
+ var tacGeometry = getTacGeometry({
4643
+ startGeometry: airmet.startGeometry,
4644
+ startGeometryIntersect: airmet.startGeometryIntersect,
4645
+ maxPoints: getMaxPolygonPoints(airmet.locationIndicatorATSR, productConfig)
4646
+ });
4664
4647
  var areas = [];
4665
4648
  if (airmet.startGeometry) {
4666
4649
  areas.push({
4667
- geoJSON: Object.assign({}, airmet.startGeometry, {
4668
- features: airmet.startGeometry.features.map(function (feature) {
4650
+ areaId: airmet.uuid + "-start",
4651
+ geoJSON: Object.assign({}, tacGeometry, {
4652
+ features: tacGeometry.features.map(function (feature) {
4669
4653
  return Object.assign({}, feature, {
4670
4654
  properties: Object.assign({}, feature.properties, {
4671
- isStartGeometry: true
4655
+ isStartGeometry: true,
4656
+ source: tacGeometry === airmet.startGeometry ? 'drawn' : 'intersected'
4672
4657
  })
4673
4658
  });
4674
4659
  })
@@ -4680,6 +4665,7 @@ var transformAirmetToWarningFormat = function transformAirmetToWarningFormat(api
4680
4665
  id: apiAirmet.uuid,
4681
4666
  lastUpdatedTime: apiAirmet.lastUpdateDate,
4682
4667
  productStatus: airmet.status,
4668
+ editor: apiAirmet.author,
4683
4669
  warningDetail: {
4684
4670
  id: airmet.uuid,
4685
4671
  phenomenon: airmet.phenomenon,
@@ -4696,14 +4682,24 @@ var transformAirmetToWarningFormat = function transformAirmetToWarningFormat(api
4696
4682
  type: 'airmet'
4697
4683
  };
4698
4684
  };
4699
- var transformSigmetToWarningFormat = function transformSigmetToWarningFormat(apiSigmet) {
4685
+ var transformSigmetToWarningFormat = function transformSigmetToWarningFormat(apiSigmet, productConfig) {
4700
4686
  var sigmet = apiSigmet.sigmet;
4687
+ var tacGeometryStart = getTacGeometry({
4688
+ startGeometry: sigmet.startGeometry,
4689
+ startGeometryIntersect: sigmet.startGeometryIntersect,
4690
+ maxPoints: getMaxPolygonPoints(sigmet.locationIndicatorATSR, productConfig)
4691
+ });
4692
+ var tacGeometryEnd = getTacGeometry({
4693
+ startGeometry: sigmet.endGeometry,
4694
+ startGeometryIntersect: sigmet.endGeometryIntersect,
4695
+ maxPoints: getMaxPolygonPoints(sigmet.locationIndicatorATSR, productConfig)
4696
+ });
4701
4697
  var areas = [];
4702
4698
  if (sigmet.startGeometry) {
4703
4699
  areas.push({
4704
4700
  areaId: sigmet.uuid + "-start",
4705
- geoJSON: Object.assign({}, sigmet.startGeometry, {
4706
- features: sigmet.startGeometry.features.map(function (feature) {
4701
+ geoJSON: Object.assign({}, tacGeometryStart, {
4702
+ features: tacGeometryStart.features.map(function (feature) {
4707
4703
  return Object.assign({}, feature, {
4708
4704
  properties: Object.assign({}, feature.properties, {
4709
4705
  isStartGeometry: true
@@ -4717,8 +4713,8 @@ var transformSigmetToWarningFormat = function transformSigmetToWarningFormat(api
4717
4713
  if (sigmet.endGeometry) {
4718
4714
  areas.push({
4719
4715
  areaId: sigmet.uuid + "-end",
4720
- geoJSON: Object.assign({}, sigmet.endGeometry, {
4721
- features: sigmet.endGeometry.features.map(function (feature) {
4716
+ geoJSON: Object.assign({}, tacGeometryEnd, {
4717
+ features: tacGeometryEnd.features.map(function (feature) {
4722
4718
  return Object.assign({}, feature, {
4723
4719
  properties: Object.assign({}, feature.properties, {
4724
4720
  isStartGeometry: false
@@ -4733,6 +4729,7 @@ var transformSigmetToWarningFormat = function transformSigmetToWarningFormat(api
4733
4729
  id: apiSigmet.uuid,
4734
4730
  lastUpdatedTime: apiSigmet.lastUpdateDate,
4735
4731
  productStatus: sigmet.status,
4732
+ editor: apiSigmet.author,
4736
4733
  warningDetail: {
4737
4734
  id: sigmet.uuid,
4738
4735
  phenomenon: sigmet.phenomenon,
@@ -7402,11 +7399,18 @@ var useWarnings = function useWarnings(disabled) {
7402
7399
  sigmetWarnings = _useSigmetList.data,
7403
7400
  refetchSigmet = _useSigmetList.refetch,
7404
7401
  isFetchingSigmet = _useSigmetList.isFetching;
7402
+ var warningType = useSelector(getWarningType);
7403
+ var _useProductConfig = useProductConfig(warningType, false),
7404
+ aviationConfig = _useProductConfig.data;
7405
7405
  var combinedWarnings = useMemo(function () {
7406
- var transformedSigmets = (sigmetWarnings == null ? void 0 : sigmetWarnings.map(transformSigmetToWarningFormat)) || [];
7407
- var transformedAirmets = (airmetWarnings == null ? void 0 : airmetWarnings.map(transformAirmetToWarningFormat)) || [];
7406
+ var transformedSigmets = (sigmetWarnings == null ? void 0 : sigmetWarnings.map(function (sigmet) {
7407
+ return transformSigmetToWarningFormat(sigmet, aviationConfig);
7408
+ })) || [];
7409
+ var transformedAirmets = (airmetWarnings == null ? void 0 : airmetWarnings.map(function (airmet) {
7410
+ return transformAirmetToWarningFormat(airmet, aviationConfig);
7411
+ })) || [];
7408
7412
  return concat(publicWarnings || [], transformedSigmets, transformedAirmets);
7409
- }, [publicWarnings, sigmetWarnings, airmetWarnings]);
7413
+ }, [sigmetWarnings, airmetWarnings, publicWarnings, aviationConfig]);
7410
7414
  var refetchWarnings = function refetchWarnings() {
7411
7415
  void refetchPublicWarnings();
7412
7416
  void refetchAirmet();
@@ -7484,7 +7488,7 @@ var PublicWarningsFormDialogConnect = function PublicWarningsFormDialogConnect(_
7484
7488
  var isEditor = (selectedWarning == null ? void 0 : selectedWarning.editor) === (auth == null ? void 0 : auth.username) || false;
7485
7489
  var shouldGiveEditorWarning = React__default.useCallback(function (newEditor, oldEditor) {
7486
7490
  var oldEditorIsYou = oldEditor && oldEditor === (auth == null ? void 0 : auth.username);
7487
- if (oldEditorIsYou && newEditor !== oldEditor) {
7491
+ if (oldEditorIsYou && newEditor && newEditor !== oldEditor) {
7488
7492
  dispatch(publicWarningFormActions.setFormError({
7489
7493
  severity: 'warning',
7490
7494
  message: TAKEOVER_MESSAGE
@@ -8521,7 +8525,8 @@ var WarningListItem = function WarningListItem(_ref) {
8521
8525
  right: '4px'
8522
8526
  },
8523
8527
  children: jsx(WarningAvatar, {
8524
- editor: warning.editor
8528
+ editor: warning.editor,
8529
+ status: warning.productStatus
8525
8530
  })
8526
8531
  })]
8527
8532
  })
@@ -9616,18 +9621,22 @@ var PublicWarningListConnect = function PublicWarningListConnect(_ref) {
9616
9621
  void openPublicWarningDialog('cancel', warning, type);
9617
9622
  break;
9618
9623
  case 'DISCARD':
9619
- setConfirmDialogOptions({
9620
- confirmLabel: t('warning-dialog-delete-confirm'),
9621
- title: t('warning-dialog-delete-title'),
9622
- description: t('warning-dialog-delete-description'),
9623
- request: function request() {
9624
- return deleteAviationProduct(warning, 'DISCARDED', type);
9625
- },
9626
- callback: function callback() {
9627
- return onRemoveSuccess(warning.id);
9628
- }
9629
- });
9630
- break;
9624
+ {
9625
+ var isLocked = warning.editor && warning.editor !== (auth == null ? void 0 : auth.username) || false;
9626
+ setConfirmDialogOptions({
9627
+ confirmLabel: t('warning-dialog-delete-confirm'),
9628
+ title: t('warning-dialog-delete-title'),
9629
+ description: t('warning-dialog-delete-description'),
9630
+ request: function request() {
9631
+ return deleteAviationProduct(warning, 'DISCARDED', type);
9632
+ },
9633
+ callback: function callback() {
9634
+ return onRemoveSuccess(warning.id);
9635
+ },
9636
+ isLocked: isLocked
9637
+ });
9638
+ break;
9639
+ }
9631
9640
  }
9632
9641
  };
9633
9642
  var openSnackbar = function openSnackbar(message) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/warnings",
3
- "version": "12.6.0",
3
+ "version": "12.7.0",
4
4
  "description": "GeoWeb warinings library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,25 +8,25 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/api": "12.6.0",
12
- "@opengeoweb/shared": "12.6.0",
13
- "@opengeoweb/store": "12.6.0",
14
- "@opengeoweb/webmap-react": "12.6.0",
11
+ "@opengeoweb/api": "12.7.0",
12
+ "@opengeoweb/shared": "12.7.0",
13
+ "@opengeoweb/store": "12.7.0",
14
+ "@opengeoweb/webmap-react": "12.7.0",
15
15
  "@tanstack/react-query": "^5.69.2",
16
16
  "react-redux": "^9.2.0",
17
- "@opengeoweb/theme": "12.6.0",
18
- "@opengeoweb/form-fields": "12.6.0",
17
+ "@opengeoweb/theme": "12.7.0",
18
+ "@opengeoweb/form-fields": "12.7.0",
19
19
  "react-hook-form": "^7.50.1",
20
20
  "lodash": "^4.17.21",
21
21
  "@reduxjs/toolkit": "^2.6.1",
22
- "@opengeoweb/snackbar": "12.6.0",
22
+ "@opengeoweb/snackbar": "12.7.0",
23
23
  "react-window": "^1.8.10",
24
24
  "react-virtualized-auto-sizer": "^1.0.20",
25
25
  "axios": "^1.7.7",
26
- "@opengeoweb/core": "12.6.0",
27
- "@opengeoweb/webmap": "12.6.0",
28
- "@opengeoweb/authentication": "12.6.0",
29
- "@opengeoweb/sigmet-airmet": "12.6.0",
26
+ "@opengeoweb/core": "12.7.0",
27
+ "@opengeoweb/webmap": "12.7.0",
28
+ "@opengeoweb/authentication": "12.7.0",
29
+ "@opengeoweb/sigmet-airmet": "12.7.0",
30
30
  "react-i18next": "^15.1.1",
31
31
  "i18next": "^25.0.1",
32
32
  "@mui/material": "^7.0.1",
@@ -1,3 +1,6 @@
1
+ import { AirmetFromBackend, SigmetFromBackend } from '@opengeoweb/api';
2
+ export declare const airmetList: AirmetFromBackend[];
3
+ export declare const sigmetList: SigmetFromBackend[];
1
4
  export declare const fakeSigmetTAC = "EHAA SIGMET 1 VALID 121249/121449 EHDB- EHAA AMSTERDAM FIR FRQ TS OBS ENTIRE FIR FL010 STNR WKN";
2
5
  export declare const fakeAirmetTAC = "EHAA AIRMET -1 VALID 310700/311100 EHDB- EHAA AMSTERDAM FIR ISOL CB OBS ENTIRE FIR FL020 STNR NC";
3
6
  export declare const aviationEndpoints: import("msw").HttpHandler[];
@@ -1,7 +1,8 @@
1
1
  import { TooltipProps } from '@mui/material';
2
2
  import * as React from 'react';
3
- interface WarningAvatarProps {
3
+ export interface WarningAvatarProps {
4
4
  editor: string;
5
+ status?: string;
5
6
  tooltipPlacement?: TooltipProps['placement'];
6
7
  }
7
8
  declare const WarningAvatar: React.FC<WarningAvatarProps>;
@@ -4,8 +4,8 @@ import { Warning, PublicWarningStatus, AviationWarningDetails, AirmetWarning, Si
4
4
  export declare function isCancelAirmet(warningDetail: AviationWarningDetails): warningDetail is CancelAirmet;
5
5
  export declare function isCancelSigmet(warningDetail: AviationWarningDetails): warningDetail is CancelSigmet;
6
6
  export declare const flattenPublicWarning: (publicWarning: Warning) => Partial<AviationWarningDetails>;
7
- export declare const transformAirmetToWarningFormat: (apiAirmet: AirmetFromBackend) => AirmetWarning;
8
- export declare const transformSigmetToWarningFormat: (apiSigmet: SigmetFromBackend) => SigmetWarning;
7
+ export declare const transformAirmetToWarningFormat: (apiAirmet: AirmetFromBackend, productConfig: ProductConfig) => AirmetWarning;
8
+ export declare const transformSigmetToWarningFormat: (apiSigmet: SigmetFromBackend, productConfig: ProductConfig) => SigmetWarning;
9
9
  export declare const mapProductStatusToWarningStatus: (productStatus?: ProductStatus) => PublicWarningStatus;
10
10
  export declare const transformSigmetToProductFormat: (warning: SigmetFromBackend | undefined) => AviationProduct;
11
11
  export declare const transformAirmetToProductFormat: (warning: AirmetFromBackend | undefined) => AviationProduct;