@opengeoweb/sigmet-airmet 14.2.1 → 14.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.
Files changed (2) hide show
  1. package/index.esm.js +5 -5
  2. package/package.json +10 -10
package/index.esm.js CHANGED
@@ -8,7 +8,7 @@ import { useFormContext } from 'react-hook-form';
8
8
  import { FORM_FIELDS_NAMESPACE, useDraftFormHelpers, ReactHookFormRadioGroup, hasValidGeometry, ReactHookFormSelect, ReactHookFormNumberField, isInteger, isValidMin, isValidMax, isEmpty, ReactHookFormDateTime, countIntersectionPoints, hasMulitpleIntersections, ReactHookFormHiddenInput, hasIntersectionWithFIR, isValidGeoJsonCoordinates, isMaximumOneDrawing, isXHoursBefore, isXHoursAfter, ReactHookFormTextField, DegreesMinutesField, isLatitude, isNonOrBothCoordinates, isLongitude, ReactHookFormFormControl, isGeometryDirty, ReactHookFormProvider, defaultFormOptions } from '@opengeoweb/form-fields';
9
9
  import { useSelector, useDispatch, shallowEqual } from 'react-redux';
10
10
  import { uiSelectors, useUpdateSharedData, mapSelectors, syncGroupsActions, layerActions, mapActions, defaultLayers, syncConstants, uiActions, uiTypes, genericSelectors, drawingToolActions } from '@opengeoweb/store';
11
- import { defaultIntersectionStyleProperties, defaultGeoJSONStyleProperties, addSelectionTypeToGeoJSON, DRAWMODE, defaultPoint, addGeoJSONProperties, defaultBox, defaultPolygon, defaultDelete, getIcon, addFeatureProperties, OpenLayersFeatureLayer, genericOpenLayersFeatureStyle, OpenLayersMapDraw, useMapDrawTool, rewindGeometry } from '@opengeoweb/webmap-react';
11
+ import { FEATURE_DRAW_SECONDARY_FILL_COLOR, FEATURE_DRAW_SECONDARY_STROKE_COLOR, defaultIntersectionStyleProperties, defaultGeoJSONStyleProperties, addSelectionTypeToGeoJSON, DRAWMODE, defaultLocation, addGeoJSONProperties, defaultBox, defaultPolygon, defaultDelete, getIcon, addFeatureProperties, OpenLayersFeatureLayer, genericOpenLayersFeatureStyle, OpenLayersMapDraw, useMapDrawTool, rewindGeometry } from '@opengeoweb/webmap-react';
12
12
  import { getHeaders, handleResponse, useAuthQuery, useAuthenticationContext } from '@opengeoweb/api';
13
13
  import { useQueryClient, useMutation } from '@tanstack/react-query';
14
14
  import i18n from 'i18next';
@@ -4646,10 +4646,10 @@ var srsAndBboxDefault = {
4646
4646
  };
4647
4647
  var featurePropsStart = defaultGeoJSONStyleProperties;
4648
4648
  var featurePropsEnd = {
4649
- stroke: '#6e1e91',
4649
+ stroke: FEATURE_DRAW_SECONDARY_STROKE_COLOR,
4650
4650
  'stroke-width': 1.5,
4651
4651
  'stroke-opacity': 1,
4652
- fill: '#6e1e91',
4652
+ fill: FEATURE_DRAW_SECONDARY_FILL_COLOR,
4653
4653
  'fill-opacity': 0.25
4654
4654
  };
4655
4655
  var featurePropsIntersectionStart = defaultIntersectionStyleProperties;
@@ -5442,11 +5442,11 @@ var getProjection = function getProjection(productConfig) {
5442
5442
  var firSelectionType = 'fir';
5443
5443
  var getDrawTools = function getDrawTools(t, type, firShape) {
5444
5444
  var defaultStyleProperties = type === StartOrEndDrawing.start ? featurePropsStart : featurePropsEnd;
5445
- return [Object.assign({}, defaultPoint, {
5445
+ return [Object.assign({}, defaultLocation, {
5446
5446
  title: t('drop-a-point-as', {
5447
5447
  type: type
5448
5448
  }),
5449
- shape: addGeoJSONProperties(defaultPoint.shape, defaultStyleProperties)
5449
+ shape: addGeoJSONProperties(defaultLocation.shape, defaultStyleProperties)
5450
5450
  }), Object.assign({}, defaultBox, {
5451
5451
  title: t('draw-a-box-as', {
5452
5452
  type: type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/sigmet-airmet",
3
- "version": "14.2.1",
3
+ "version": "14.3.0",
4
4
  "description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,17 +8,17 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/api": "14.2.1",
12
- "@opengeoweb/shared": "14.2.1",
13
- "@opengeoweb/theme": "14.2.1",
14
- "@opengeoweb/store": "14.2.1",
15
- "@opengeoweb/webmap": "14.2.1",
16
- "@opengeoweb/webmap-react": "14.2.1",
11
+ "@opengeoweb/api": "14.3.0",
12
+ "@opengeoweb/shared": "14.3.0",
13
+ "@opengeoweb/theme": "14.3.0",
14
+ "@opengeoweb/store": "14.3.0",
15
+ "@opengeoweb/webmap": "14.3.0",
16
+ "@opengeoweb/webmap-react": "14.3.0",
17
17
  "react-redux": "^9.2.0",
18
- "@opengeoweb/core": "14.2.1",
19
- "@opengeoweb/authentication": "14.2.1",
18
+ "@opengeoweb/core": "14.3.0",
19
+ "@opengeoweb/authentication": "14.3.0",
20
20
  "@mui/system": "^7.3.2",
21
- "@opengeoweb/form-fields": "14.2.1",
21
+ "@opengeoweb/form-fields": "14.3.0",
22
22
  "react-hook-form": "^7.50.1",
23
23
  "axios": "^1.7.7",
24
24
  "lodash": "^4.17.21",