@opengeoweb/form-fields 12.11.0 → 12.12.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
@@ -286,8 +286,8 @@ var countIntersectionPoints = function countIntersectionPoints(geojson, intersec
286
286
  return [point[0], point[1]];
287
287
  });
288
288
  var uniqueIntersectionPoints = intersectionPoints.filter(function (point, index, self) {
289
- return index === self.findIndex(function (p) {
290
- return p[0] === point[0] && p[1] === point[1];
289
+ return index === self.findIndex(function (otherPoint) {
290
+ return otherPoint[0] === point[0] && otherPoint[1] === point[1];
291
291
  });
292
292
  });
293
293
  var collisionPoints = uniqueIntersectionPoints.filter(function (point) {
@@ -427,13 +427,13 @@ var ReactHookFormFormControl = function ReactHookFormFormControl(_ref) {
427
427
  }));
428
428
  };
429
429
 
430
- function getDeepProperty(p, o) {
431
- return p.reduce(function (xs, x) {
430
+ function getDeepProperty(property, state) {
431
+ return property.reduce(function (xs, x) {
432
432
  if (xs && typeof xs === 'object' && x in xs) {
433
433
  return xs[x];
434
434
  }
435
435
  return null;
436
- }, o);
436
+ }, state);
437
437
  }
438
438
  var getErrors = function getErrors(name, errors) {
439
439
  var nameAsArray = name.split('.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/form-fields",
3
- "version": "12.11.0",
3
+ "version": "12.12.0",
4
4
  "description": "GeoWeb form-fields library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,11 +8,11 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/theme": "12.11.0",
11
+ "@opengeoweb/theme": "12.12.0",
12
12
  "react-hook-form": "^7.50.1",
13
13
  "@mui/x-date-pickers": "^8.1.0",
14
14
  "lodash": "^4.17.21",
15
- "@opengeoweb/shared": "12.11.0",
15
+ "@opengeoweb/shared": "12.12.0",
16
16
  "react-i18next": "^15.1.1",
17
17
  "@mui/material": "^7.0.1",
18
18
  "i18next": "^25.0.1",
@@ -1,3 +1,3 @@
1
1
  import { FieldErrors } from 'react-hook-form';
2
- export declare function getDeepProperty<I>(p: string[], o: I): I | null;
2
+ export declare function getDeepProperty<I>(property: string[], state: I): I | null;
3
3
  export declare const getErrors: (name: string, errors: FieldErrors) => FieldErrors | undefined;