@opengeoweb/form-fields 12.10.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.10.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.10.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.10.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",
@@ -23,6 +23,9 @@
23
23
  "@emotion/react": "*",
24
24
  "@emotion/styled": "*"
25
25
  },
26
+ "devDependencies": {
27
+ "eslint-plugin-storybook": "9.0.17"
28
+ },
26
29
  "module": "./index.esm.js",
27
30
  "type": "module",
28
31
  "main": "./index.esm.js",
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { ReactHookFormDateTime } from '.';
3
3
  type Story = StoryObj<typeof ReactHookFormDateTime>;
4
4
  declare const meta: Meta<typeof ReactHookFormDateTime>;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { ReactHookFormHiddenInput } from '.';
3
3
  type Story = StoryObj<typeof ReactHookFormHiddenInput>;
4
4
  declare const meta: Meta<typeof ReactHookFormHiddenInput>;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { ReactHookFormNumberField } from '.';
3
3
  type Story = StoryObj<typeof ReactHookFormNumberField>;
4
4
  declare const meta: Meta<typeof ReactHookFormNumberField>;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { ReactHookFormDateTime } from '.';
3
3
  import { FormFieldsWrapper } from './Providers';
4
4
  type Story = StoryObj<typeof FormFieldsWrapper>;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { ReactHookFormRadioGroup } from '.';
3
3
  type Story = StoryObj<typeof ReactHookFormRadioGroup>;
4
4
  declare const meta: Meta<typeof ReactHookFormRadioGroup>;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { ReactHookFormSelect } from '.';
3
3
  type Story = StoryObj<typeof ReactHookFormSelect>;
4
4
  declare const meta: Meta<typeof ReactHookFormSelect>;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
  import { ReactHookFormTextField } from '.';
3
3
  type Story = StoryObj<typeof ReactHookFormTextField>;
4
4
  declare const meta: Meta<typeof ReactHookFormTextField>;
@@ -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;